Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter ElevenSGML Functions (continued)

11.9 HTML Code Tools

11.9.1 General

Basic functions are provided to aid in HTML code testing, conformance and conversion.

11.9.2 HTML Element Testers

A series of functions are provided to test HTML elements of being in a certain class of functionality. For example, it is sometimes desirable to test an element as being table or block level element. The testers operate on each a defined HTML token, such as HT_TABLE or HT_DIV (as defined in the built in definitions) or in some case with a CSS override using the display property.

The testers can be thought of as boolean returning FALSE or non-zero as true. However, the affirmative condition for most routines is specified as:

  Definition   Value   Description  
  HTML_IS_FALSE   0   Does Not Match Element Type same as FALSE  
  HTML_IS_OPEN   1   Head Element is an Open Tag  
  HTML_IS_CLOSE   2   Head Element is an Close Tag  
  HTML_IS_SELF   4   Head Element is an Self Close Tag  
  HTML_IS_DOC_CLOSE   5   Element Document Close Tag  

 

11.9.3 HTML Code Functions

HTMLIsBlockBasicElement — Tests an HTML element as being a basic block.

HTMLIsBlockElement — Tests an HTML element as being a block.

HTMLIsBodyContainerElement — Tests an HTML element as being a body container.

HTMLIsContainerElement — Tests an HTML element as being a container element.

HTMLIsField — Tests an HTML element as being an SGML field.

HTMLIsFieldBlock — Tests an HTML element as being an SGML field pseudo block element.

HTMLIsFieldInline — Tests an HTML element as being an SGML field pseudo inline element.

HTMLIsFlowContainerElement — Tests an HTML element as being a flow container.

HTMLIsFormControlElement — Tests an HTML element as being a form control.

HTMLIsHeadElement — Tests an HTML element as being a head element.

HTMLIsInlineElement — Tests an HTML element as being an inline element.

HTMLIsInlineStyleElement — Tests an HTML element as being an inline style element.

HTMLIsListContainer — Tests an HTML element as being a list container.

HTMLIsListItem — Tests an HTML element as being a list item.

HTMLIsRevisionElement — Tests an HTML element as being a revision element.

HTMLIsSelfContainedElement — Tests an HTML element as being a self-contained element.

HTMLIsTableElement — Tests an HTML element as being a table element.

HTMLIsTableFrameElement — Tests an HTML element as being a table frame.

HTMLConformCode — Conform code to specified DTD.

HTMLToXHTML — Converts HTML contents to XHTML.