public final class IdSelectorParser extends Object implements Parser
IdSelector
.
#rant The spec conflicts itself with ID selectors. In the actual description of ID selectors it says the name must be an identifier (ident), however in the grammar it is "HASH", which is technically just #(name), where "name" is nmchar+ (think like a hex color value). Just another example of the contradictory information all throughout the CSS "spec". #/rant
IdSelector
Constructor and Description |
---|
IdSelectorParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
parse(Source source,
Grammar grammar,
Broadcaster broadcaster)
Parse from the current position of the given source, notifying the given
Broadcaster of any applicable events and
data. |
public boolean parse(Source source, Grammar grammar, Broadcaster broadcaster)
Parser
Broadcaster
of any applicable events and
data.
Necessary grammar tokens and other parsers should be retrieved from the provided Grammar
instance.
parse
in interface Parser
source
- The source to parse.grammar
- The grammar.broadcaster
- The broadcaster.#parse(Source, Grammar, Broadcaster, Boolean)
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.