Show a warning badge for DOCTYPE in the Inspector MarkupView when the document is in QuirksMode
Categories
(DevTools :: Inspector, enhancement)
Tracking
(Not tracked)
People
(Reporter: remco, Unassigned)
References
Details
Attachments
(1 file)
29.91 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:77.0) Gecko/20100101 Firefox/77.0
Steps to reproduce:
Any page without a (valid) doctype.
Quick way to generate such a page is entering the following string in the URL-bar: data:text/html,<html>
Actual results:
Page renders in Quirks Mode, which if is unintended can create a lot confusion.
Only way the user can see it is through view:source behind a tooltip of the <html> tag
Expected results:
Make it clear to the developer that the page is rendering in Quirks Mode.
Possible enhanchements to better notice the developer:
- Add a message/warning to the console the document is rendering in Quirks Mode (see attachement for a quick console.warn mockup)
- Show the warning of a missing doctype in the inspector DOM tree
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 3•3 years ago
|
||
Good point, I guess we can repurpose this one to show a warning on the doctype in the inspector. Will rename.
Description
•