int getValueInt(int $valueidentifier)

$valueidentifier - tells the function which value to return

1 - the current number of error messages generated; now valid in the Batch Wizard as of v14.02

2 - the current number of warning messages generated; now valid in the Batch Wizard as of v14.02

3 - the current number of message messages generated; now valid in the Batch Wizard as of v14.02

4 - the current number of comment messages generated; now valid in the Batch Wizard as of v14.02

5 - returns 1 if compiled for a "normal" build (not an OEM version), else returns another value

6 - returns 1 if running from command line arguments, else returns 0

7 - returns 1 if processing a batch (for example, called with cmdlineprocessor.exe -f), else returns 0

8 - returns the number of lines in the document

9 - returns the number of elements (tags) in the document

10 - returns the number of elements (tags) that have been ended (with an end tag)

11 - returns the number of HTML comments in the document

12 - returns the number of entities in the document

13 - returns the number of tag name programs run

14 - returns 1 if the validator is generating an easily parsed output file (usually used when integrating with other applications), else returns 0

15 - returns 1 if the validator is validating a file in CSE's integrated editor (not in classic mode), else returns 0

16 - returns 1 if the validator is validating a file in CSE's integrated editor (whether in classic mode or not), else returns 0

17 - returns the number of bytes in the document (each newline is considered 1.5 bytes)

18 - returns 1 if the validator is validating a file in the Batch Wizard, else returns 0

19 - returns 1 if there have been too many errors or warnings and the validation is being terminated

20 - [the integer keyword CSEJOBSUBTYPE is now recommended instead] returns CSEJOBSUBTYPE

21 - [the integer keyword CurrentAttIndex is now recommended instead] returns the attribute index for attribute programs or attribute value programs (should be >=1)

22 - [the integer keyword DocTypeFlags is now recommended instead] returns doctypeflags (contains information about the DOCTYPE being used)

1 - DOCTYPE is empty string

2 - DOCTYPE contains "strict" (case-insensitive)

4 - DOCTYPE contains "transitional" (case-insensitive)

8 - DOCTYPE contains "frameset" (case-insensitive)

16 - DOCTYPE contains "HTML 4.0" or "HTML 4.01" (case-insensitive)

32 - DOCTYPE contains "XHTML" (case-insensitive)

64 - DOCTYPE contains "XHTML 1.1" (case-insensitive)

128 - DOCTYPE contains "XHTML 1.0" (case-insensitive)

256 - DOCTYPE contains "HTML" (case-insensitive)

512 - DOCTYPE contains "XHTML Basic" (case-insensitive)

1024 - Document has no DOCTYPE (or the DOCTYPE hasn't been set/encountered yet)

2048 - DOCTYPE contains "HTML 3.2" (case-insensitive)

4096 - DOCTYPE contains "HTML 3.0" (case-insensitive)

8192 - DOCTYPE contains "HTML 2.0" (case-insensitive)

16384 - DOCTYPE contains " HTML 4.0" followed by a non-digit (case-insensitive)

32768 - DOCTYPE contains " HTML 4.01" (case-insensitive)

65536 - DOCTYPE contains "HTML" but not "XHTML" (case-insensitive)

131072 - DOCTYPE contains " mobile" (case-insensitive) (New v9.0200)

262144 - DOCTYPE appears to be HTML5 (or higher) (like <!DOCTYPE HTML>) (New v9.9913)

524288 - DOCTYPE contains "about:legacy-compat" (case-insensitive) (New v9.9913)

0x100000 (1048576) - DOCTYPE appears to be HTML 5.1 (or higher) (New v14.00)

0x200000 - DOCTYPE contains "XHTML Basic 1.0" (case-insensitive) (New v14.0106)

0x400000 - DOCTYPE contains "XHTML Basic 1.1" (case-insensitive) (New v14.0106)

Only one or none of the following flags will be set: 16, 2048, 4096, 8192, 262144

23 - returns the number of characters of the text content of the tag that is being ended (in v15.00+ this is after character references are replaced with their corresponding characters); preceding and trailing spaces are not considered; stores the text content (preceding and trailing spaces, if any, are removed) in a variable named getvalueint23content; for v11.0000 and below: use in a tag close program only; see also 41

24 - returns 1 if checking an external style sheet, else returns 0

25 - returns 1 if the current tag is closed with "/>", else returns FALSE; use in a tag name start program, attribute program, or attribute value program only

26 - [the integer keyword isAccEnabled is now recommended instead] returns 1 if accessibility checking is enabled else returns 0

27 - [the integer keyword isWCAG10Enabled is now recommended instead] returns 1 if WCAG 1.0 accessibility checking is enabled else returns 0

28 - [the integer keyword isSection508Enabled is now recommended instead] returns 1 if Section 508 accessibility checking is enabled else returns 0

29 - [the integer keyword isAccAndWCAG10Enabled is now recommended instead] returns 1 if both accessibility checking and WCAG 1.0 accessibility checking are enabled else returns 0

30 - returns 1 if both accessibility checking and Section 508 accessibility checking are enabled else returns 0

31 - returns 1 if the enable sound option is checked else returns 0

32 - returns the number of CDATA sections in the document

33 - [the integer keyword isWCAG10P1Enabled is now recommended instead] returns 1 if WCAG 1.0 Priority 1 messages should be displayed, else returns 0

34 - [the integer keyword isWCAG10P2Enabled is now recommended instead] returns 1 if WCAG 1.0 Priority 2 messages should be displayed, else returns 0

35 - [the integer keyword isWCAG10P3Enabled is now recommended instead] returns 1 if WCAG 1.0 Priority 3 messages should be displayed, else returns 0

36 - returns 1 if the job flag for "beginner mode" has been set, else returns 0

37 - returns the number of entries in the ignored CSS properties list

38 - [the integer keyword isLegacyEnabled is now recommended instead] returns whether to display legacy validator messages or not; depends on legacyflag and whether the flag specified by legacyflag is set or not

39 - returns 1 if in standards compliant mode, else returns 0

40 - [the integer keyword isSearchEngineEnabled is now recommended instead] returns 1 if general search engine messages are enabled, else returns 0 (New 8.9910)

41 - same as 23 except "{text}" is used for ASP and PHP code sections; see also 23 (New v9.0000)

42 - returns the current total number of words spell checked, including words in comments (New v9.0194)

43 - returns the current total number of words spell checked in HTML/XHTML comments (New v9.0194)

44 - returns 1 if the element that is being ended contains non-whitespace text or one of the following elements: "object", "img"; use in a tag name end program only (New v9.9930)

45 - returns true if server processed code sections have been encountered so far (like ASP and PHP code sections) (New v14.01)

50 - returns valjobflags (New v6.4930)

51 - returns jobsourceflags (New v16.0208)

60 - [the integer keyword isCLF20Enabled is now recommended instead] returns 1 if Common Look and Feel Standards for the Internet (Canada) is enabled, else returns 0 (New v9.9910)

61 - returns 1 if accessibility checking is enabled AND WCAG 1.0 checking is enabled AND WCAG Priority 1 AND Priority 2 messages should be displayed, else returns 0 (New v9.9910)

62 - returns 1 if accessibility checking is enabled AND WCAG 2.0 checking is enabled AND WCAG 2.0 Level A AND Level AA messages should be displayed, else returns 0 (New v10.0125)

70 - [the integer keyword isWCAG20Enabled is now recommended instead] returns 1 if WCAG 2.0 accessibility checking is enabled else returns 0 (New v9.9912)

71 - [the integer keyword isWCAG20AEnabled is now recommended instead] returns 1 if WCAG 2.0 "A" messages should be displayed, else returns 0 (New v9.9912)

72 - [the integer keyword isWCAG20AAEnabled is now recommended instead] returns 1 if WCAG 2.0 "AA" messages should be displayed, else returns 0 (New v9.9912)

73 - [the integer keyword isWCAG20AAAEnabled is now recommended instead] returns 1 if WCAG 2.0 "AAA" messages should be displayed, else returns 0 (New v9.9912)

74 - [the integer keyword isAccAndWCAG20Enabled is now recommended instead] returns 1 if both accessibility checking and WCAG 2.0 accessibility checking are enabled else returns 0 (New v9.9912)

80 - returns the number of foreign CDATA sections in the document (like those in "math" and "svg" sections) (New v11.0043)

81 - returns the number of native CDATA sections in the document (not foreign) (New v11.0043)

82 - returns 1 if called in a tag close program and the text contents of the element being closed starts with a newline, else returns 0 (New v11.9916)

83 - returns the number of native CDATA sections in the document (not foreign) AND that are not commented out in a "script" or "style" element (New v11.9916)

84 - returns the number of XML processing instructions (New v11.9916)

85 - estimate the current (0-based) location of the serialized document (for performance, stops counting when reaches over 1024); for example, if used in a tag end, start or attribute program then it returns an estimate of the index of the character immediately after the current tag in the byte stream when serialized using UTF-8 (New v14.00)

100 - returns the current four-digit year (local time) (New v6.0091)

101 - returns the current month (1-12, local time) (New v6.0091)

102 - returns the current day (1-31, local time) (New v6.0091)

103 - returns the current hour (0-23, local time) (New v6.0091)

104 - returns the current minute (0-59, local time) (New v6.0091)

105 - returns the current second (0-59, local time) (New v6.0091)

106 - returns the current millisecond (0-999, local time) (New v6.0091)

107 - returns the current day of the week (0-6, Sunday=0, Monday=1, etc., local time) (New v6.0091)

120 - return number of unique proprietary attributes used so far (like those starting with "x-") (New v11.01)

121 - return number of unique proprietary CSS pseudo-elements used so far (like pseudo-elements starting with "-moz-") (New v11.01)

122 - return number of unique proprietary CSS media features used so far (like media features starting with "-webkit-") (New v11.01)

123 - return number of unique proprietary CSS pseudo-classes used so far (like pseudo-classes starting with "-moz-") (New v14.0022)

Returns -1 if an error occurs, such as if valueidentifier is invalid. This function will not generate a validator error message if it returns -1 because valueidentifier is invalid.