Bug 249619

Summary: Document::nodeWillBeRemoved() should handle node in different document
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: bfulgham, rniwa
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2022-12-19 17:03:45 PST
Hi Team,

While going through DOM bugs, I came cross following failing test in Safari 16.2 and Safari Technology Preview 160:

Test Case - https://jsfiddle.net/926wnqvg/

^It passes Chrome Canary 111 and Firefox Nightly 110.

Blink Commit - https://chromium.googlesource.com/chromium/src.git/+/48227c770ed61333226a41c6d054ba06e863668e

I will not be able to do this fix and would appreciate if someone else can take it up.

Thanks!
Comment 1 Ryosuke Niwa 2022-12-19 19:48:21 PST
This is only failing in WebKit because the test assumes very specific exception message. We're still throwing the same exception (NotFoundError) as Blink.