Replacing JavaScript with Just HTML
htmhell.dev
Replacing JavaScript with Just HTML
1–10 of 296 posts
Re: Replacing JavaScript with Just HTML
#2It's great until you have a typo in the field, or want to show options that don't start with what you typed in but appear near the end of an option (think Google search's autocomplete). There's no way to filter in Javascript and force it to show certain options with . I've resorted to for search suggestions.
Re: Replacing JavaScript with Just HTML
#3It's good to know these things exist so there are alternatives to reaching for a fat react component as the first step.
Re: Replacing JavaScript with Just HTML
#4Re: Replacing JavaScript with Just HTML
#5The Pentagram at the top of the page does not load without JS enabled.
Re: Replacing JavaScript with Just HTML
#6When building out a new app or site, start with the simplest solution like the html-only autofilters first, then add complex behavior later. It's good to know these things exist so there are alternatives to reaching for a fat react component as the first step.
Re: Replacing JavaScript with Just HTML
#7Re: Replacing JavaScript with Just HTML
#8It even saves you the effort of all the aria control and expanded tags: these tags don’t need them.
Re: Replacing JavaScript with Just HTML
#9Some of these new HTML features don't fully work in my "ancient" browser. But all of them partially work (ie opening the accordion element doesn't close others but it still opens and closes) and they still remain functional elements I can read and interact with. This puts them far ahead of any javascript implementation which almost universally fail to nothing.
Re: Replacing JavaScript with Just HTML
#10When building out a new app or site, start with the simplest solution like the html-only autofilters first, then add complex behavior later. It's good to know these things exist so there are alternatives to reaching for a fat react component as the first step.