The node of the element.
The selector used to find the element node.
The parent adaptive element.
Unique ID of the element. It should be computed once, before any adaptation, using getID method.
Node of the element.
Parent adaptive element.
If it has no parent, it should be set to null
.
Selector used to find the node. If no selector was used, it should be set to NO_SELECTOR.
Prefix of all tags added to nodes by SAM. It acts as a sort of HTML attribute namespace.
Get the ID of the element, which should uniquely identify it.
It is formed by the element type followed by the element selector, with a slash ("/") in between.
The element ID.
Call nodeToSelector on the element node.
The element selector.
Call getNodeTag on the element node.
The name of the tag (without the prefix).
The value of the tag, or undefined
if the tag was not found.
Get the type of the element.
Each concrete type of element must return an type which must be unique among all types of elements.
The element type.
Add a tag to the element node, i.e. an prefixed HTML attribute. Note: the prefix is automatically prepended to the tag name.
The name of the tag (without the prefix).
The value of the attribute.
Tag the element node with its element type, using a type
tag.
Get the value of a tag of the given node. Note: the prefix is automatically prepended to the tag name.
The tagged node (with the attribute).
The name of the tag (without the prefix).
The value of the tag, or undefined
if the tag was not found.
Return a standalone jQuery string selector for the given node,
i.e. $(<selector>)
should select the node.
The selector is built recursively, in the following way:
body
or html
node, it returns the related tag selector;>
);
(2) the node tag;
(3) the node positional selector (:eq(<index>)
).The node to represent with a selector.
The standalone selector.
Generated using TypeDoc
Create a new instance of adaptive element. The ID is automatically computed, and the node is tagged with the element type.