WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
244950
Handling of text documents does not comply with modern HTML spec
https://bugs.webkit.org/show_bug.cgi?id=244950
Summary
Handling of text documents does not comply with modern HTML spec
Brent Fulgham
Reported
2022-09-08 16:12:16 PDT
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
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-09-08 16:12:37 PDT
<
rdar://problem/99719728
>
Brent Fulgham
Comment 2
2022-09-08 16:20:47 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/4143
Brent Fulgham
Comment 3
2022-09-08 16:26:47 PDT
It looks like Chris started on a larger version of this change here:
Bug 228832
.
Brent Fulgham
Comment 4
2022-09-09 14:14:35 PDT
Pull request:
https://github.com/Webkit/WebKit/pull/4143
EWS
Comment 5
2022-09-12 09:55:45 PDT
Committed
254389@main
(e30caa272fe6): <
https://commits.webkit.org/254389@main
> Reviewed commits have been landed. Closing PR #4143 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug