Open Bug 1644363 Opened 4 years ago Updated 3 years ago

Show a warning badge for DOCTYPE in the Inspector MarkupView when the document is in QuirksMode

Categories

(DevTools :: Inspector, enhancement)

77 Branch
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: remco, Unassigned)

References

Details

Attachments

(1 file)

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

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Inspector
Product: Firefox → DevTools
See Also: → 1238861

This is a duplicate of bug 1238861.

Flags: needinfo?(jdescottes)

Good point, I guess we can repurpose this one to show a warning on the doctype in the inspector. Will rename.

Flags: needinfo?(jdescottes)
Summary: Devtools should show a clear warning the current page in rendering in Quirks Mode → Show a warning badge for DOCTYPE in the Inspector MarkupView when the document is in QuirksMode
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: