getTag

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home/drbiz/public/tools.realism.com/modules/book/book.module).

Primary tabs

The getTag method of xseen.Tag returns a reference to the data structure for the specified tag. It gets the reference to an entry in the parsing table so you can add or modify attributes. the XSeen parser knows how to deal with this tag when it is encountered when parsing the XSeen tree in the DOM data structure.

tagStructure = xseen.Tag.getTag (name);

This can also be called with a JSON data structure with the above names as the field names all passed as the first argument.

  • name
    The name of the tag as a string. The string is converted to lower case before retrieving. The first character must be a letter. Legal characters are [a-z0-9-]. Note that 'x-' is prepended to all tag names

This method returns the tag data structure. It needs to be used to define the tag's attributes.

If the returned reference is used to add or modify the attributes, it is not necessary to call the addTag method.