Post AklEeF2V2SHYlVGRSy by atjn@mastodon.online
(DIR) More posts by atjn@mastodon.online
(DIR) Post #Akkn49hIj07r0guuxs by foone@digipres.club
2024-08-08T10:04:12Z
0 likes, 0 repeats
Is there a polyfill for old HTML? Like my HTML4 page includes a modern JS that'll fail on old browsers, but it lets modern browsers still support all the deprecated stuff from my 1997 HTML.You know, like <marquee>
(DIR) Post #AkknRfopSqSvIFeW7U by gsuberland@chaos.social
2024-08-08T10:08:59Z
0 likes, 0 repeats
@foone now I want to see a pure-css marquee polyfill lol
(DIR) Post #AkknhvgsDn2P9TgOfI by Krazov@mstdn.social
2024-08-08T10:11:59Z
0 likes, 0 repeats
@foone, I don't recall anything like that, but it would be doable with document.createElement. (Marquee still works, but <blink>, sadly, was removed.)
(DIR) Post #Akkp76XB8rq5ybiTSK by foone@digipres.club
2024-08-08T10:24:57Z
0 likes, 0 repeats
@linus huh. Thought it was way more gone
(DIR) Post #AkkpIWbwWsKc2POHB2 by foone@digipres.club
2024-08-08T10:26:41Z
0 likes, 0 repeats
Apparently I meant <blink>, not <marquee>.<marquee> somehow still works.
(DIR) Post #AkkpqfTe4UZvNin2em by furby@towns.gay
2024-08-08T10:35:32Z
0 likes, 0 repeats
@foone you could recreate <blink> quite easily with CSS animations I think?
(DIR) Post #AkksMIR7TIpD64olpw by th@social.v.st
2024-08-08T11:03:49Z
0 likes, 0 repeats
@foone <blink> still works on @jwz's site: https://www.jwz.org/blog/2013/08/a-light-has-gone-out-on-the-web/
(DIR) Post #AkksUCqa8WLG4wV1YO by sinza@bitbang.social
2024-08-08T11:05:41Z
0 likes, 0 repeats
@foone Fun fact: <blink>, a Netscape original tag, doesn't work in modern Firefox, while <marquee>, an Internet Explorer original tag does work in modern Firefox.I thought this was strange when I ran into it a few years ago.
(DIR) Post #AkkxTV8LA6agH4HyWu by megamatt@mastodon.online
2024-08-08T12:00:29Z
0 likes, 0 repeats
@foone you can run a browser vm through WASM! I think if you do a simple Linux box you could get away with it.
(DIR) Post #AklAazv8OToHBp16rA by aartaka@kopimi.space
2024-08-08T14:28:21Z
0 likes, 0 repeats
@foone I didn’t see this suggestion here, thus: you can use any old HTML doctype and that will put the browser in “Quirks mode”, supporting all the possible features there have ever been in browsers. Use the needed doctype to get the version-specific behavior in the rare case Quirks mode doesn’t do the trick.And note that you can use the tags from younger versions in the older version (e.g. using <details> in HTML 3.2 mode), because, apparently, browsers allow that.
(DIR) Post #AklEeF2V2SHYlVGRSy by atjn@mastodon.online
2024-08-08T15:13:54Z
0 likes, 0 repeats
@foone I would be interested in knowing exactly what features you need polyfills for? Browsers are very good at backwards compatibility, so I dont think there is a need for an HTML4 polyfill.