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.

true - represents 1
false - represents 0
CurrentAttHasEqual - represents 1 if the attribute for which the attribute or attribute value program is running has an equal sign, else 0
CurrentAttIndex - represent the attribute index for attribute programs or attribute value programs (should be >=1); same as getValueInt(21)
DocTypeFlags - represents the present value of doctypeflags; same as getValueInt(22)
hasHTTPHeaders - represents 1 if HTTP header data is available, else 0 (New v10.0127)
isAccEnabled - represents 1 if accessibility checking is enabled, else 0; same as getValueInt(26)
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)
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
isHTTPSRequested - represents 1 if document is or is expected to be requested using HTTPS; else 0 (New v10.0046)
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)
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)
numAttributes - (case sensitive) the number of attributes in the current tag; same as getNumAttributes() (New v10.0140)
RETURN_FIRSTATTINDEX - (case sensitive) same as #RETURN_FIRSTATTINDEX but faster (New v10.0140)
RETURN_ATTINDEX - (case sensitive) same as #RETURN_ATTINDEX but faster (New v10.0140)