href "javascript: void(0);" always flagged as invalid
Posted: Sun Jan 01, 2017 9:05 am
I'm having a big problem with links with this href:
javascript: void(0);
I know it may not be best programming practice to use this for links that should not do anything, but I have thousands of these being flagged, so I can't easily find the "real" broken links. It's like looking for a needle in a haystack.
I have added that link text to Validator Engine Options --> Link Checking --> Link Filters under section "Don't check (exclude) these links:", but I still get this error on every one of those links:
[error computing path] (javascript: void(0);) -- Can't compute abs path -- Info: bad character in scheme data section
I think the Validator is trying to parse 'javascript: void(0);' and failing.
--> Is there a way to completely ignore (don't parse, don't compute the absolute path, don't do anything at all) these links? I have tried everything I can think of, including "Path Mapping" 'javascript: void(0);' to an empty string.
Many thanks!
javascript: void(0);
I know it may not be best programming practice to use this for links that should not do anything, but I have thousands of these being flagged, so I can't easily find the "real" broken links. It's like looking for a needle in a haystack.
I have added that link text to Validator Engine Options --> Link Checking --> Link Filters under section "Don't check (exclude) these links:", but I still get this error on every one of those links:
[error computing path] (javascript: void(0);) -- Can't compute abs path -- Info: bad character in scheme data section
I think the Validator is trying to parse 'javascript: void(0);' and failing.
--> Is there a way to completely ignore (don't parse, don't compute the absolute path, don't do anything at all) these links? I have tried everything I can think of, including "Path Mapping" 'javascript: void(0);' to an empty string.
Many thanks!