The goog.dom.pattern.FullTag Class

goog.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}
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.

.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}
Token to match against.
type {goog.dom.TagWalkType}
The type of token.
returns {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.