http://software.hixie.ch/utilities/js/live-dom-viewer/saved/4303 <iframe srcdoc="<!doctype x>"> The srcdoc document should always be in no-quirks mode, regardless of the doctype. In WebKit if there's a quirky doctype it triggers quirks mode. https://html.spec.whatwg.org/multipage/syntax.html#the-initial-insertion-mode
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case, where it shows "BackCompat" mode for Safari in logs, while CSS1Compat mode for Firefox Nightly 105 and Chrome Canary 106. Thanks!
*** Safari 15.6 on macOS 12.5 *** log: BackCompat rendering mode: CSS1Compat document has no title *** Firefox Nightly 105 *** log: CSS1Compat rendering mode: CSS1Compat document has no title *** Chrome Canary 106 *** log: CSS1Compat rendering mode: CSS1Compat document has no title
<rdar://problem/98460686>
Oh, we have a check for this in HTMLConstructionSite::setDefaultCompatibilityMode() but we're missing one in HTMLConstructionSite::setCompatibilityModeFromDoctype
Pull request: https://github.com/WebKit/WebKit/pull/3199
Committed 253326@main (4401d4e5b5d9): <https://commits.webkit.org/253326@main> Reviewed commits have been landed. Closing PR #3199 and removing active labels.