goog.dom.pattern.FullTag
Classgoog.dom.pattern.FullTag
> goog.dom.pattern.StartTag
> goog.dom.pattern.Tag
> goog.dom.pattern.AbstractPattern
goog.dom.pattern.FullTag(tag, opt_attrs, opt_styles, opt_test)
Pattern object that matches a full tag including all its children.
tag
{string
|RegExp
}
opt_attrs
{Object
=}
opt_styles
{Object
=}
opt_test
{Function
=}
.matchToken(token, type)
Test whether the given token is a start 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
at the end of our
tag, MATCHING
if we are within the tag, and
NO_MATCH
if the starting tag does not match.
.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.