Integer Keywords

  Previous topic Next topic  

Integer keywords are new in CSE HTML Validator v10 and represent certain integer values. Like function names and variables, these keywords are also case-insensitive. These keywords provide better code readability and often result in slightly faster code than using equivalents such as the getValueInt() function.

t or true - represents 1; t abbreviation new v10.0210

f or false - represents 0; f abbreviation new v10.0210

CSEJOBSUBTYPE - represents the job subtype; same as getValueInt(20) (New v10.9921)

CurrentAttHasEqual - represents 1 if the attribute for which the attribute or attribute value program is running has an equals sign, else 0

CurrentAttIndex - represent the attribute index for attribute programs or attribute value programs (should be >=1); same as getValueInt(21)

CurrentTagFlags - for internal use only (New v11.0043)

DocTypeFlags - represents the present value of doctypeflags; same as getValueInt(22)

hasDocType - represents 1 if the document has a document type definition, else 0 (New v10.9913)

hasHTTPHeaders - represents 1 if HTTP header data is available, else 0 (New v10.0127)

hasNoDocType - represents 1 if the document has no document type definition, else 0 (New v10.9923)

isAccEnabled - represents 1 if accessibility checking is enabled, else 0; same as getValueInt(26)

isAccEnabledMessageFlag - represents 16 if accessibility checking is enabled, else 0 (New v10.9926)

isAccAndWCAG10Enabled - represents 1 if both accessibility checking and WCAG 1.0 are enabled, else 0; same as getValueInt(29)

isAccAndWCAG20Enabled - represents 1 if both accessibility checking and WCAG 2.0 are enabled, else 0; same as getValueInt(74)

isAttributeValueQuoted - represents non-zero if the attribute value exists and is quoted (use in attribute or attribute value programs), else 0 (New v10.9913)

isCFMLTypeDocument - represents 1 if the document appears to be a CFML (ColdFusion) type document, else 0 (New v10.9914)

isCLF20Enabled - represents 1 if Common Look and Feel Standards for the Internet (Canada) is enabled. else 0; same as getValueInt(60)

isHTML4TypeDoc - represents 1 if document appears to be an HTML 4 based document (based on doctypeflags), else 0 (New v10.0146)

isHTML5TypeDoc - represents 1 if document appears to be an HTML5 based document (based on doctypeflags), else 0

isHTML5OrHigherTypeDoc - represents 1 if document appears to be an HTML5 (or higher) based document (based on doctypeflags), else 0 (New v10.9912)

isHTML5OrHigherTypeDocWithAssume - represents 1 if document appears to be an HTML5 (or higher) based document or if it can or should be assumed that it is (for example, if there is no document type definition) (based on doctypeflags), else 0 (New v10.9923)

isHTTPSRequested - represents 1 if document is or is expected to be requested using HTTPS; else 0 (New v10.0046)

isInCSEMainEditor - represents 1 if the document is being validated in the mian editor; else 0 (New v10.9924)

isLegacyEnabled - represents 1 if legacy validator messages should be displayed, else 0; depends on legacyflag and whether the flag specified by legacyflag is set or not; same as getValueInt(38)

isSearchEngineEnabled - represents 1 if search engine messages are enabled, else 0; same as getValueInt(40)

isSection508Enabled - represents 1 if Section 508 accessibility checking is enabled, else 0; same as getValueInt(28)

isStandardsCompliantMode - represents 1 if standards compliant mode is enabled, else 0 (New v10.9923)

isWCAG10Enabled - represents 1 if WCAG 1.0 accessibility check is enabled, else 0; same as getValueInt(27)

isWCAG10P1Enabled - represents 1 if WCAG 1.0 Priority 1 messages should be displayed, else 0; same as getValueInt(33)

isWCAG10P2Enabled - represents 1 if WCAG 1.0 Priority 1 messages should be displayed, else 0; same as getValueInt(34)

isWCAG10P3Enabled - represents 1 if WCAG 1.0 Priority 1 messages should be displayed, else 0; same as getValueInt(35)

isWCAG20Enabled - represents 1 if WCAG 2.0 accessibility check is enabled, else 0; same as getValueInt(70)

isWCAG20AEnabled - represents 1 if WCAG 2.0 "A" messages should be displayed, else 0; same as getValueInt(71)

isWCAG20AAEnabled - represents 1 if WCAG 2.0 "AA" messages should be displayed, else 0; same as getValueInt(72)

isWCAG20AAAEnabled - represents 1 if WCAG 2.0 "AAA" messages should be displayed, else 0; same as getValueInt(73)

isXHTMLTypeDoc - represents 1 if document appears to be an XHTML document (flag 32 is set in the doctypeflags)

isXHTML10TypeDoc - represents 1 if document appears to be an XHTML 1.0 document (flag 128 is set in the doctypeflags) (New v10.9925)

isXHTML11TypeDoc - represents 1 if document appears to be an XHTML 1.1 document (flag 64 is set in the doctypeflags) (New v10.0210)

numAttributes - (case sensitive) the number of attributes in the current tag; same as getNumAttributes() (New v10.0140)

RETURN_ATTINDEX - (case sensitive) same as #RETURN_ATTINDEX but faster (New v10.0140)

RETURN_FIRSTATTINDEX - (case sensitive) same as #RETURN_FIRSTATTINDEX (New v10.0140)

RETURN_LISTINDEX - (case sensitive) same as #RETURN_LISTINDEX (New v10.0210)

RETURN_NOTUSED - (case sensitive) same as #RETURN_NOTUSED (New v10.0210)

SET_ATTRIBUTE - (case sensitive) same as $SET_ATTRIBUTE (New v10.9912)

SET_ATTVALUE - (case sensitive) same as $SET_ATTVALUE (New v10.9912)