You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Press F12 to open the devtools, press Ctrl F to open the search function and enter the XPath expression //title to verify that the page actually contains a title element.
Open the ARC Toolkit and press "Send selected DOM" without first selecting any part of the DOM (so the entire DOM gets validated).
Check the validator's list of errors: it contains the error "Element head is missing a required instance of child element title." (and other errors that don't make sense for the page being validated). This issue has been present at least since May 2023.
Expected behavior
Only real errors are reported ...
Version information
Browser and version: Google Chrome Version 117.0.5938.132 (Official Build) (64-bit) on Windows 10.
ARC Toolkit version: 5.5.3.
The text was updated successfully, but these errors were encountered:
This problem still occurs. There are actually three errors, "Error: Element head is missing a required instance of child element title," "Error: Stray start tag html," and Fatal Error: Cannot recover after last error. Any further errors will be ignored." Since the errors all happen on Line 1, they prevent the selected DOM node from being validated at all.
The problem is caused by the "wrapper" code ARC is using to place the selected DOM node within a minimal HTML page; it's trying to include newline (aka "line feed") characters after each element but the \n notation hasn't been converted to newlines, they're still a part of the strings:
<!DOCTYPE html>\n<htmllang='en'>\n<head>\n<title>ARC Toolkit Node Validation</title>\n</head>\n<body>\n[begin selected DOM Node]
…
[end selected DOM Node]\n</body>\n</html>
The selected DOM node code does contain newlines.
The HTML validator doesn't care about newlines, they're for making the code more readable, so to make the validation work again, removing the \n code is sufficient. If you can figure out how to insert the desired newlines, that would be even better.
When sending the DOM to the W3C Validator, the validator claims that the page has no
title
element for pages that evidently have such an element.To Reproduce
F12
to open the devtools, pressCtrl F
to open the search function and enter the XPath expression//title
to verify that the page actually contains a title element.head
is missing a required instance of child elementtitle
." (and other errors that don't make sense for the page being validated). This issue has been present at least since May 2023.Expected behavior
Only real errors are reported ...
Version information
The text was updated successfully, but these errors were encountered: