Given the spec language in https://html.spec.whatwg.org/multipage/browsing-the-web.html#read-text, the setCompatibilityMode code here seems out-of-spec to me: (7.11.4.3 Set document's mode to "no-quirks".) From: Source/WebCore/html/parser/TextDocument.cpp: TextDocument::TextDocument(Frame* frame, const Settings& settings, const URL& url, ScriptExecutionContextIdentifier identifier) : HTMLDocument(frame, settings, url, identifier, { DocumentClass::Text }) { setCompatibilityMode(DocumentCompatibilityMode::QuirksMode); lockCompatibilityMode(); } This causes the following WPT failure: wpt /html/browsers/browsing-the-web/read-text/load-text-plain.html
<rdar://problem/99719728>
Pull request: https://github.com/WebKit/WebKit/pull/4143
It looks like Chris started on a larger version of this change here: Bug 228832.
Pull request: https://github.com/Webkit/WebKit/pull/4143
Committed 254389@main (e30caa272fe6): <https://commits.webkit.org/254389@main> Reviewed commits have been landed. Closing PR #4143 and removing active labels.