Next
/
Previous
/ What is this about?
/ NMTCC Projects
WebStyler: The WebTag object
Each instance of the Webtag object represents one
HTML tag. It includes the TagAttr object that represents
each attribute of the tag.
Methods in the Webtag object:
- Webtag_Parse() is the constructor. It works with the
Scan object to parse an HTML tag.
- Webtag_Gen_Attrs() generates the TagAttr
objects representing the tag's attributes, if any.
- Webtag_Is_Close() is a predicate to be used in testing
whether this is a closing tag or an opening tag.
- Webtag_N_Attrs() returns the count of the tag's attributes.
- Webtag_Name() returns the tag name, lowercased.
- Webtag_Source() returns the tag reconstituted into a
character string.
Methods in the TagAttr object, which represents one
name (and possibly its associated value) from a tag:
- Tag_Attr_New() is the constructor.
- Tag_Attr_Name() returns the attribute name.
- Tag_Attr_Value() returns the attribute value, if any.
See also: Internals
Previous: The TToken object
Contents:
The WebStyler Homepage
Home:
New Mexico Tech Computer Center
projects documentation
John Shipman, john@nmt.edu
Last updated: 1996/09/29 21:37:00
URL: http://www.nmt.edu/tcc/projects/webstyler/ims_web_tag.html