HTMLElement is an AppleScript libraryt that represets HTML document structure with programming.
You can built a structre of a HTML document by script object through well arranged object orientied interface. And the object structre can output well fomatted HTML data.
This library is useful when a kind of data is converted into HTML data.
The root object of HTMLElement can be made by the constructor method of make_with. First argument of make_with is name of the tag. Attributes of the tag can be specified in second argument as a list of lists e.g. {{attribute1, value1}, {attribute2, value2}, ...}.
Child objects can be appended by methods of push_element_with, push_comment_with.
The contents of HTML tags can be appended by push.
To obtain text data of HTML, as_html can be used.
Make a new HTMLElement instance
Make a new HTMLElement instance for a comment tag
Append text into the contents of the tag.
Append a new HTMLElement instance as a child node.
Append a new comment instance as a child node.
Return HTML text data.
Retun element name.
Set element name.
Return atttibute value of specified name.
Set attibute of the tag.