Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
HTML foster-parenting algorithm no longer requires foster parents to …
…be elements https://bugs.webkit.org/show_bug.cgi?id=137501 Reviewed by Chris Dumez. Merge https://src.chromium.org/viewvc/blink?revision=183370&view=revision This patch updates the foster parenting algorithm to match the spec and behavior of Blink. * LayoutTests/fast/parser/foster-parent-expected.txt: * LayoutTests/fast/parser/foster-parent.html: * LayoutTests/html5lib/resources/template.dat: * Source/WebCore/html/parser/HTMLConstructionSite.cpp: (WebCore::HTMLConstructionSite::findFosterSite): Canonical link: https://commits.webkit.org/253504@main
- Loading branch information
Showing
4 changed files
with
39 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
Otherwise, if there is a table element in the stack of open elements, but the last table element in the stack of open elements has no parent, or its parent node is not an element, then the foster parent element is the element before the last table element in the stack of open elements. | ||
PASS div.children.length is 0 | ||
PASS docFragment.firstElementChild.tagName is "H1" | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
||
success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters