Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6ce660df8e73f74edf12a52a65d8325dca9f96bd
      
https://github.com/WebKit/WebKit/commit/6ce660df8e73f74edf12a52a65d8325dca9f96bd
  Author: Ahmad Saleem <[email protected]>
  Date:   2025-01-25 (Sat, 25 Jan 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/svg/types/SVGElement.ownerSVGElement-01-expected.txt
    M Source/WebCore/svg/SVGElement.cpp

  Log Message:
  -----------
  Fix SVGElement.ownerSVGElement on outermost <svg> in foreignObject
https://bugs.webkit.org/show_bug.cgi?id=286531
rdar://143625675

Reviewed by Alan Baradlay.

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

Merge: 
https://source.chromium.org/chromium/chromium/src/+/232437a403a0dfa9a0ef8006bf77f4549ab84d78

If an <svg> element was a child of a <foreignObject>, it would
incorrectly continue past it while searching for the owner <svg>
element. Check if the element is an outermost root first, and return
nullptr if it is per [1].

[1] https://svgwg.org/svg2-draft/types.html#__svg__SVGElement__ownerSVGElement

* 
LayoutTests/imported/w3c/web-platform-tests/svg/types/SVGElement.ownerSVGElement-01-expected.txt:
* Source/WebCore/svg/SVGElement.cpp:
(WebCore::SVGElement::ownerSVGElement const):

Canonical link: https://commits.webkit.org/289388@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