Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6b7c4e637f2f8da9c37bd060f73b7335b59cbb6c
      
https://github.com/WebKit/WebKit/commit/6b7c4e637f2f8da9c37bd060f73b7335b59cbb6c
  Author: Ruthvik Konda <[email protected]>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M LayoutTests/fast/parser/block-nesting-cap-expected.txt
    M LayoutTests/fast/parser/block-nesting-cap.html
    M Source/WebCore/html/parser/HTMLConstructionSite.cpp

  Log Message:
  -----------
  Fix conditional check for reaching maximum DOM tree depth
https://bugs.webkit.org/show_bug.cgi?id=295696
rdar://155538446

Reviewed by Ryosuke Niwa.

Now we start adding as siblings right when we hit the max depth rather than 
waiting to go over the max.
>= is used to be robust and avoid off-by-one surprises.
Updated test to correctly check for sibling behavior exactly at max depth 
rather than max depth + 1.

* LayoutTests/fast/parser/block-nesting-cap-expected.txt:
* LayoutTests/fast/parser/block-nesting-cap.html:
* Source/WebCore/html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::attachLater):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to