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

See also: Global Integer Keywords

NOTE: These keywords are read-only. Do not try to assign values to them.

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)

CurrentParentTagNameLine - returns the line number of the current parent start tag (New v15.03)

CurrentParentTagNameLineEx - (returns string or integer) if the current parent tag is an implied tag then returns a string containing the line number of the current parent start tag followed by " [implied]", else (if not an implied tag) returns the line number as an integer (New v15.03)

CurrentParentTagRequiresExplicitEndTag - returns 1 if the current parent start tag requires an explicit end tag per the configuration and options, else 0 (New v16.0010)

CurrentTagCategory - returns the category ID of the current tag being checked (the first tag that matches in the config) or -1 if not available (New v11.9924)

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

DocSourceFlags - information about the source (New v16.0300)

1 - source contains a UTF-8 BOM

2 - source contains a UTF-16BE BOM

4 - source contains a UTF-16LE BOM

8 - source contains NO BOM

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)

isAngularJSEnabled - represents 1 if support for AngularJS is enabled, else 0 (New v14.9910)

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)

isCSSEnabled - represents 1 if CSS checking is enabled, else 0 (New v16.0204)

isCurrentParentTagImplied - represents 1 if the current parent element is an implied (not explicit) element, else 0

isExtendedMessagesEnabled - represents 1 if extended (longer) messages are enabled, else 0 (New v16.0204)

isHTMLOrXHTMLTypeDoc - represents 1 if document appears to be any type of HTML or XHTML document (based on doctypeflags), else 0 (New v11.9915)

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 or XHTML5 based document (based on doctypeflags), else 0

isHTML51TypeDoc - represents 1 if document appears to be an HTML 5.1 or XHTML 5.1 based document (based on doctypeflags), else 0 (New v14.00)

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

isHTML51OrHigherTypeDoc - represents 1 if document appears to be an HTML 5.1 (or higher) or XHTML 5.1 (or higher) based document (based on doctypeflags), else 0 (New v14.00)

isHTML5OrHigherTypeDocWithAssume - represents 1 if document appears to be an HTML5 (or higher) or XHTML5 (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 main editor; else 0 (New v10.9924)

isInForeignContent - represents 1 if in foreign content (like in a "math" or "svg" element), else 0 (New v11.9922)

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)

isLiteEdition - represents 1 if using the lite edition, else 0 (New v14.0205)

isMessageCombineEnabled - represents 1 if message combination/aggregation is enabled (like it may be for Batch Wizard jobs), else 0 (New v16.00)

isMobileEnabled - represents 1 if mobile development messages should be displayed, else 0 (New v14.00)

isPolyglotTypeDoc - represents 1 if checking a polyglot document (New v11.9915)

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)

isSecurityEnabled - represents 1 if security messages are enabled, else 0 (New v16.02)

isSpellCheckingEnabled - represents 1 if spell checking is enabled in the options (not affected by whether there are currently any active main dictionaries), else 0 (New v14.00)

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

isStdOrHigherEdition - represents 1 if using the standard or higher edition, else 0 (New v14.0205)

isTagExplicit - represents 1 if the current tag is explicit (not implied), else 0 (use in start tag, end tag, attribute, and attribute value programs)  (New v15.9916)

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)

isWebApp - represents 1 if document appears to be a web application (New v16.0200)

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)

isXMLTypeDoc - represents 1 if document appears to be an XML document (like if it's XHTML or has an XML declaration) (New v11.9916)

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

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

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

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

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

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

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