Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter ElevenSGML Functions (continued)

HTMLIsListItem Function

Overview

The HTMLIsListItem function checks a specified token or the currently loaded element for being a list item type of element.

Syntax/Parameters

Syntax

boolean = HTMLIsListItem ( handle hObject | TOKEN token );

Parameters

hObject

A handle to an SGML Object. Or,

token

An TOKEN (or dword) specifying an HTML element token.

Return Value

A boolean value as non-zero for a match condition or FALSE on no match or failure. See HTML Element Testers for HTML_IS_ definitions of non-zero conditions. Use the GetLastError function to retrieve a formatted error code or additional information. If a CSS display override applies, the PK_DISPLAY_ code will be placed into the last error.

Remarks

When specifying an object, the currently loaded element is tested. In addition the CSS property ‘display’ is tested which will override the element type. If the type overrides the element, the last error will be set to a PK_DISPLAY_ code. If the type is PK_DISPLAY_LIST_ITEM, the function returns HTML_IS_OPEN.

The following elements are consider a list item:

 LI  DD  DT

/LI /DD /DT

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic