Ancestors

Toot

Written by Timo Tijhof on 2025-01-09 at 21:41

I just found the weirdest bug in Safari @webkit

When swapping the class name of two DOM nodes, it tells JavaScript that attribute changed, but the "real" DOM and painted screen don't change, permanently out of sync.

https://treasure21.timotijhof.net/play.html

In Firefox/Chrome, the orange box moves. In Safari, a ghost clone is created!

Isolated test:

https://codepen.io/Krinkle/pen/WbeMPvw?editors=0010

Bug report:

https://bugs.webkit.org/show_bug.cgi?id=285705

[#]webcompat #webkit #interop2025 #browserbug

=> More informations about this toot | More toots from krinkle@fosstodon.org

Descendants

Written by Brooke Vibber :neocat_cofe: on 2025-01-09 at 21:43

@krinkle @webkit that's wild :D

webkit folks have been pretty good about being responsive on bugs that actually make it onto their list, good luck with it!

=> More informations about this toot | More toots from brooke@bikeshed.vibber.net

Written by Ricci Adams on 2025-01-12 at 02:46

@krinkle In case it helps, the issue appears to be the out-of-index access on HTMLCollection. It causes further calls to item() to always return the first item. See my upload in the bug.

=> More informations about this toot | More toots from iccir@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113800570346484529
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
259.050587 milliseconds
Gemini-to-HTML Time
0.827188 milliseconds

This content has been proxied by September (3851b).