[webkit-changes] [WebKit/WebKit] 26b96b: Improve <li> support in the HTML fast parser
Chris Dumez
noreply at github.com
Wed Aug 23 15:53:10 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 26b96bce3e5f8e65fec3bcd642aecac66856e2d7
https://github.com/WebKit/WebKit/commit/26b96bce3e5f8e65fec3bcd642aecac66856e2d7
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-08-23 (Wed, 23 Aug 2023)
Changed paths:
M Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp
M Tools/TestWebKitAPI/Tests/WebCore/HTMLParserIdioms.cpp
Log Message:
-----------
Improve <li> support in the HTML fast parser
https://bugs.webkit.org/show_bug.cgi?id=260619
Reviewed by Ryosuke Niwa.
This moves <li> to flow, so that it will be created in more situations. As
<li>s have special handling (primarily around nesting) this will not handle all
situations. In particular, if an <li> is encountered inside an <li> then the
fast parser aborts.
This is a cherry-pick from Blink:
- https://chromium-review.googlesource.com/c/chromium/src/+/4516018
* Source/WebCore/html/parser/HTMLDocumentParserFastPath.cpp:
(WebCore::HTMLFastPathParser::parseElement):
* Tools/TestWebKitAPI/Tests/WebCore/HTMLParserIdioms.cpp:
(TestWebKitAPI::TEST):
Canonical link: https://commits.webkit.org/267207@main
More information about the webkit-changes
mailing list