[webkit-changes] [WebKit/WebKit] a641fc: innerHTML escapes <, >, &, and nbsp inside noembed...

Ahmad Saleem noreply at github.com
Wed Mar 29 12:47:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a641fc693f57c0b0910a0c2bbb13796b34544ef1
      https://github.com/WebKit/WebKit/commit/a641fc693f57c0b0910a0c2bbb13796b34544ef1
  Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing-html-fragments/tokenizer-modes-001-expected.txt
    M LayoutTests/imported/w3c/web-platform-tests/html/syntax/serializing-html-fragments/serializing-expected.txt
    M Source/WebCore/editing/MarkupAccumulator.cpp

  Log Message:
  -----------
  innerHTML escapes <, >, &, and nbsp inside noembed, noframes, iframe and plaintext

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

Reviewed by Ryosuke Niwa.

This patch is to align WebKit with Gecko / Firefox and Blink / Chromium.

Partial Merge - https://chromium-review.googlesource.com/c/chromium/src/+/886646

This patch update to serialize 'noembed', 'noframes', 'iframe' and 'plaintext' tags as per Web-Spec [1].

[1] https://html.spec.whatwg.org/#serialising-html-fragments

NOTE - 'noscript' tag need special handling, so it will be done separately.

* Source/WebCore/editing/MarkupAccumulator.cpp:
(MarkupAccumulator::entityMaskForText): Update to accommodate other tags
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/serializing-html-fragments/serializing-expected.txt: Rebaselined
* LayoutTests/imported/w3c/web-platform-tests/html/syntax/parsing-html-fragments/tokenizer-modes-001-expected.txt: Rebaselined

Canonical link: https://commits.webkit.org/262285@main




More information about the webkit-changes mailing list