goog.dom.pattern.Tag
Classgoog.dom.pattern.Tag
> goog.dom.pattern.AbstractPattern
goog.dom.pattern.Tag(tag, type, opt_attrs, opt_styles, opt_test)
Pattern object that matches an tag.
tag
{string
|RegExp
}
type
{goog.dom.TagWalkType
}
opt_attrs
{Object
=}
opt_styles
{Object
=}
opt_test
{Function
=}
.matchToken(token, type)
Test whether the given token is a tag token which matches the tag name, style, and attributes provided in the constructor.
token
{Node
}
type
{goog.dom.TagWalkType
}
goog.dom.pattern.MatchType
}
MATCH
if the pattern
matches, NO_MATCH
otherwise.
.matchedNode
{Node
}Inherited from goog.dom.pattern.AbstractPattern
.
The first node matched by this pattern.
.reset()
Inherited from goog.dom.pattern.AbstractPattern
.
Reset any internal state this pattern keeps.