void addLink(int $flags[, string $linktype] [, string $attname] [, int $attindex]);
•Add a link for link checking. Adds the link to the $links array and the link type to the $linkstypes array.
•$flags
•0 - set $flags to 0 for "auto" mode, which works in tag attribute and tag attribute value programs and assumes the value of the attribute being checked is the link to add; do not supply any optional parameters when setting $flags to 0
•1 - supply the $attname parameter to add the attribute value of $attname for link checking
•2 - supply the $linktype parameter to manually specify the link type, otherwise it is automatically generated (examples: "a href", "img src", etc.)
•4 - add the attribute value of the current attribute being checked for link checking (use in attribute and attribute value programs only)
•8 - supply the $attindex parameter to add the attribute value of the attribute with index $attindex for link checking
•This function is supported only in CSE HTML Validator v11.0104 and later.