Elektrine lite

← Feed

@niyabits@hachyderm.io

Post #2413245

2026-04-09 11:25 UTC

I was reading a test where an id is used like this and I was unable to figure out if the imported test harness does some magic apparently it happens by default…

Replies (2)

  • @follpvosten@karp.lol 2026-04-09 11:27

    @niyabits@hachyderm.io damn, fascinating! bookmarking this in case I ever need to write JS lol

    Open ##2413246

  • @jdm_@mastodon.social 2026-04-10 16:31

    @niyabits@hachyderm.io It's called the window named getter: https://html.spec.whatwg.org/multipage/nav-history-apis.html#named-access-on-the-window-object . Servo didn't support it for a long time and the implementation history was fraught: https://github.com/servo/servo/pull/29396 . I kind of hate that I've fallen into using it now, but it's very convenient for short HTML/JS snippets.

    Open ##2413247