Class Layout.TagElement
Defined in: layout.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Layout.TagElement(tag, content, tagType)
HELPER class: extract raw TAG Strings into a property-object
|
Class Detail
Layout.TagElement(tag, content, tagType)
HELPER class: extract raw TAG Strings into a property-object
- Parameters:
- {String} tag
- the start TAG
- {String} content
- the TEXT content of the TAG (may be empty)
- {String} tagType
- the TAG type, e.g. "SCRIPT"
- Returns:
- {Layout.TagElement} prop {String} tagName: the TAG type, e.g. "SCRIPT" prop {String} textContent: the TEXT content of the TAG (may be an empty String) prop EXTRACTED ATTRIBUTES: the extracted attributes form the start-TAG func {String} attr(STRING name): returns the attribute-value for name (may be undefined) func {String} html(): returns the TEXT content of the TAG (may be an empty String) func {Boolean} isScript(): returns TRUE if tagType is SCRIPT func {Boolean} isStyle(): returns TRUE if tagType is STYLE func {Boolean} isLink(): returns TRUE if tagType is LINK