Display HTML parsing errors/warnings in the inspector
Categories
(DevTools :: Inspector, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: jdescottes, Unassigned)
References
Details
Take the following page: https://html-validation-errors.glitch.me/
The HTML is
<html>
<body>
Test File >< abd
</body>
<html>
Note that ">" and "<" are not encoded. The inspector loses this information. The markupview will simply show <body>Test File >< abd</body>
, while Edit as HTML
used on the body element will show
<body>
Test File >< abd
</body>
As far as the inspector is concerned, the characters are encoded and we don't show the HTML parsing issue anywhere.
If you use "View source" you will notice that the ">" "<" show a light red underscore. Hovering it will show a tooltip Bad character after "<". Probably cause: Unescaped "<". Try escaping it as "<"
.
It could be nice to have a side panel in the inspector listing those errors. We don't think it would be easy to link back those errors the current DOM tree, but the information could still be valuable.
Comment 1•3 years ago
|
||
Description
•