Open scientificware opened 1 year ago
00000000000000000000000000000000000000000000000000000000000000000000000000000000
/**
* A CSS parser. This works by way of a delegate that implements the
* {@code CSSParserCallback} interface. The delegate is notified of the following
* events:
* <ul>
* <li>Import statement: {@code handleImport}.
* <li>Selectors {@code handleSelector}. This is invoked for each
* string. For example if the Reader contained p, bar , a {}, the delegate
* would be notified 4 times, for 'p,' 'bar' ',' and 'a'.
* <li>When a rule starts, {@code startRule}.
* <li>Properties in the rule via the {@code handleProperty}. This
* is invoked once per property/value key, for example font size: foo;, would
* cause the delegate to be notified once with a value of 'font size'.
* <li>Values in the rule via the {@code handleValue}, this is notified
* for the total value.
* <li>When a rule ends, {@code endRule}.
* </ul>
* This will parse much more than CSS 1, and loosely implements the
* recommendation for <i>Forward-compatible parsing</i> in section
* 7.1 of the CSS spec found at:
* <a href=http://www.w3.org/TR/REC-CSS1>http://www.w3.org/TR/REC-CSS1</a>.
* <p>
* If parsing results in an error, a {@code RuntimeException} will be thrown.
* <p>
* This will preserve case. If the callback wishes to treat certain portions
* case-insensitively (such as selectors), it should use {@code toLowerCase}, or
* something similar.
*
* @author Scott Violet
*/
line 121
/** Called when an {@code @import} is encountered. */
lines 362-366
/**
* Parses identifiers until {@code extraChar} is encountered,
* returning the ending token, which will be {@code IDENTIFIER} if {@code extraChar}
* is found.
*/
line 510-514
/**
* Gets an identifier, returning {@code true} if the length of the string is greater than 0,
* stopping when {@code stopChar}, whitespace, or one of {}()[] is hit.
*/
lines 633-636
/**
* Reads till a {@code stopChar} is encountered, escaping characters
* as necessary.
*/
The purpose of this issue is about typo in CSSParser.java.
This is referenced in Java Bug Database as
This is tracked in JBS as
Related Pull Request
<rgb()>
and<rgba()>
function behavioursI suspect a typo in the documentation comments. Replaces poritions with portions.
Status
This Pull Request is not yet accepted so it's internaly referenced in Java Bug Database as JI-9074283.