getLocation() (tick_24Validator Engine Only)

location getLocation(element node or int $locid[, int $auxint])

Returns a location based on $locid and $auxint.

$locid - location ID (if an integer)

1 - OBSOLETE; do not use

2 - location of the current tag (or comment) with all attributes and values

Use 0 for $auxint for standard behavior

Use 1 for $auxint to include ending spaces

Use 2 for $auxint to only include ending spaces

3 - location of the text referred to in getValueInt(23), getValueString(13), getValueString(30), or getValueString(32); $auxint should be 0 or not supplied

4 - location of the last child of the current node; $auxint should be 0 or not supplied; good to use in end tag programs to locate the matching start tag

5 - location of the current CSS property if available; $auxint should be 0 or not supplied (New v7.9910)

6 - location of the first character of line number $auxint (New v7.9910)

7 - location of the bad hyphens after calling checkStringEx(0,5); if not available then returns getLocation(2,1) (New v7.9920)

8 - location of the last child of the current node that is a tag; $auxint should be 0 or not supplied (New v10.0032)

9 - location of the first native CDATA section start text (New v11.0043)

10 - location of the last $auxint characters of the current tag (or comment) with all attributes and values (New v11.0111)

11 - location of the first native CDATA section start text that is not commented out in a "script" or "style" element (New v11.9916)

12 - location of the first XML processing instruction, if available (New v12.00)

13 - location of the child node at index $auxint (a 1-based index) (New v12.0010)

14 - location of the end of the document (New v14.0106)

15 - a NULL location (no location) (New v15.03)

$auxint is optional in v12.0036+; if omitted then it defaults to 0 (New v12.0036)

In v15.00 and above, $locid can be an element node