[Webkit-unassigned] [Bug 244950] New: Handling of text documents is does not comply with modern HTML spec.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 8 16:12:16 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244950

            Bug ID: 244950
           Summary: Handling of text documents is does not comply with
                    modern HTML spec.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220908/3a442ba6/attachment.htm>


More information about the webkit-unassigned mailing list