4 ms·
There are so many fun things a browser could do in it's user interface. For instance HTML defines <link rel="previois|next|up|contents|glossary|..." href="..."
by johannes1234321 5y ago
There are so many fun things a browser could do in it's user interface. For instance HTML defines <link rel="previois|next|up|contents|glossary|..." href="..."> which could allow to have navigation for manuals and similar documents.
Or imagine web browsers providing upload progress ;)
But well, designers like to give all that their custom design.
- 9dev 5y agoIt's not the designers fault that browsers provide ridiculously bad default form controls with almost no way of styling them. Really, we have WASM, Bluetooth APIs in JS, and boatloads of other extremely advanced engineering feats in browsers -- but they can't be bothered to provide usable form elements? Just imagine all the developer time wasted on creating progress bars or date pickers...
- johannes1234321 5y agoYeah, aside from <optgroup> there hasn't been much improvement in that area (well maybe fieldset and related) in that space.
- 6510 5y agoFormData is hilarious. https://developer.mozilla.org/en-US/docs/Web/API/FormData https://developer.mozilla.org/en-US/docs/Web/API/FormData Uhh, JSON would have been nice I guess? When I got frustrated with the user needing to be able to re-edit a form with waaay to many fields and the option to add more fields of various exotic types. I wrote a hilarious hack where I just went over the input elements and elm.setAttribute("value", elm.value). Then I rip out the entire form innerHTML, POST it and store it in the database. Want to edit it again? Here you go! When displaying the content wrap the form in: <fieldset disabled="disabled"> and add some border:0;color:black For such a terrible idea it looked remarkably clean.