Class CssParser
java.lang.Object
org.apache.batik.css.parser.Parser
org.owasp.validator.css.CssParser
- All Implemented Interfaces:
org.apache.batik.css.parser.ExtendedParser,org.apache.batik.i18n.Localizable,org.w3c.css.sac.Parser
public class CssParser
extends org.apache.batik.css.parser.Parser
-
Field Summary
Fields inherited from class org.apache.batik.css.parser.Parser
BUNDLE_CLASSNAME, conditionFactory, current, documentHandler, documentURI, errorHandler, localizableSupport, pseudoElement, scanner, selectorFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CssMediaFeatureprotected org.apache.batik.css.parser.CSSSACMediaListprotected CssMediaQueryprotected voidprotected voidparseStyleDeclaration(boolean inSheet) This implementation is a workaround to solve leading dash errors on property names.Methods inherited from class org.apache.batik.css.parser.Parser
createCSSParseException, createCSSParseException, createScanner, dimension, formatMessage, getLocale, getParserVersion, hexcolor, isPseudoElement, next, nextIgnoreSpaces, number, parseAtRule, parseExpression, parseFontFaceRule, parseFunction, parseImportRule, parseMedia, parsePageRule, parsePriority, parsePriority, parsePriorityInternal, parsePropertyValue, parsePropertyValue, parsePropertyValueInternal, parseRule, parseRule, parseRule, parseRuleInternal, parseRuleSet, parseSelector, parseSelectorList, parseSelectors, parseSelectors, parseSelectorsInternal, parseSimpleSelector, parseStyleDeclaration, parseStyleDeclaration, parseStyleDeclarationInternal, parseStyleSheet, parseStyleSheet, parseTerm, reportError, reportError, reportError, setConditionFactory, setDocumentHandler, setErrorHandler, setLocale, setSelectorFactory, skipSpaces, skipSpacesAndCDOCDC
-
Constructor Details
-
CssParser
public CssParser()
-
-
Method Details
-
parseStyleDeclaration
protected void parseStyleDeclaration(boolean inSheet) throws org.w3c.css.sac.CSSException This implementation is a workaround to solve leading dash errors on property names.- Overrides:
parseStyleDeclarationin classorg.apache.batik.css.parser.Parser- Parameters:
inSheet- Specifies if the style to parse is inside a sheet or the sheet itself.- Throws:
org.w3c.css.sac.CSSException- Thrown if there are parsing errors in CSS- See Also:
-
parseMediaList
protected org.apache.batik.css.parser.CSSSACMediaList parseMediaList()- Overrides:
parseMediaListin classorg.apache.batik.css.parser.Parser
-
parseMediaQuery
-
parseMediaFeature
-
parseMediaRule
protected void parseMediaRule()- Overrides:
parseMediaRulein classorg.apache.batik.css.parser.Parser
-