4 ms·
It’s not about the table element, it’s about the API to construct and manipulate that element with a columns and rows interface which is largely superseded by g
by paperpunk 11mo ago
It’s not about the table element, it’s about the API to construct and manipulate that element with a columns and rows interface which is largely superseded by general DOM manipulation.
- littlestymaar 11mo agoExactly like how `getElementById` replaced the direct use of the id as a JavaScript identifier.
- xg15 11mo agoI remember there being posts that explicitly discouraged using IDs directly, but I'm not sure of tge reasons anymore. Maybe browser incompatibilities or unclear scoping and confusion with other variables?
- withinboredom 11mo agoIt was either Mozilla (Netscape, I think) or IE that it didn’t work on for the longest time.
- mook 11mo agoI think that was a native IE API that Mozilla had to add support for, as well as document.all (Netscape used document.layers).
- chrismorgan 11mo agoIt works everywhere (it’s now specified in https://html.spec.whatwg.org/multipage/nav-history-apis.html#named-access-on-the-window-object https://html.spec.whatwg.org/multipage/nav-history-apis.html...), but it’s brittle. It can break by adding colliding properties to window deliberately or by accidental global leak (… including things like setting in dev tools), by browser defining new globals, by some 'name' attribute conflict.