goog.dom.pattern.AbstractPattern | |
goog.dom.pattern.Tag | goog.dom.pattern.AbstractPattern |
goog.dom.pattern.EndTag | goog.dom.pattern.Tag |
tag
: string | RegExp
Name of the tag. Also will accept a regular
expression to match against the tag name.
|
opt_attrs
: Object=
Optional map of attribute names to desired values.
This pattern will only match when all attributes are present and match
the string or regular expression value provided here.
|
opt_styles
: Object=
Optional map of CSS style names to desired
values. This pattern will only match when all styles are present and
match the string or regular expression value provided here.
|
opt_test
: Function=
Optional function that takes the element as a
parameter and returns true if this pattern should match it.
|
![]()
Test whether the given token is a tag token which matches the tag name,
style, and attributes provided in the constructor.
Arguments:
Returns: goog.dom.pattern.MatchType
MATCH if the pattern
matches, NO_MATCH otherwise.
|
code » |
![]()
Test whether this pattern matches the given token.
Arguments:
Returns: goog.dom.pattern.MatchType
MATCH if the pattern matches.
|
code » | |||
![]()
Reset any internal state this pattern keeps.
|
code » |
![]()
No description.
|
Code » |
![]()
The attributes to test for.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
The styles to test for.
|
Code » | |
![]()
The tag to match.
|
Code » | |
![]()
Function that takes the element as a parameter and returns true if this
pattern should match it.
|
Code » | |
![]()
The type of token to match.
|
Code » |
![]()
The first node matched by this pattern.
|
Code » |
![]()
No description.
|
Code » |