[webkit-changes] [WebKit/WebKit] affd64: Make HTMLConverter::_processText() accept CDATASec...

Anne van Kesteren noreply at github.com
Thu Feb 8 16:30:51 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: affd64b09f15ac2e708c4ef3a74dedbd4270f606
      https://github.com/WebKit/WebKit/commit/affd64b09f15ac2e708c4ef3a74dedbd4270f606
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2024-02-08 (Thu, 08 Feb 2024)

  Changed paths:
    M Source/WebCore/editing/cocoa/HTMLConverter.mm
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewGetContents.mm

  Log Message:
  -----------
  Make HTMLConverter::_processText() accept CDATASection and Text nodes
https://bugs.webkit.org/show_bug.cgi?id=268446
rdar://122072235

Reviewed by Chris Dumez.

Except for certain edge cases noted in the DOM Standard, CDATASection
and Text nodes are generally to be treated as interchangeable.

(This is a redo of 273887 at main (backed out in 274099 at main) as an
intentional change in behavior rather than an accidental one.)

* Source/WebCore/editing/cocoa/HTMLConverter.mm:
(HTMLConverter::_processText):
(HTMLConverter::_traverseNode):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/WKWebViewGetContents.mm:
(TEST):

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




More information about the webkit-changes mailing list