News for hackers. Stuff that matters.
Re:Vue 3 as the New Default by dham on Monday February 07, 2022 @06:00PM (#30252692)
If W3C would stop doing initiatives like Web USB and give us a way to style a select box (finally going to be a thing) we wouldn't even need web frameworks.

* Styled select boxes

* Good cross platform datepicker with ranges that looks good

* More form validation options / dynamic form validation

* A good drag api that does edge detection well in every browser

* Bring back frames (would allow good nested routing)

* A built in rich text editor

* A good modal API (or bring it back)

* A way to submit a form via AJAX with just a property (think Rails UJS) to just render html.

Re:Vue 3 as the New Default by sippeangelo on Monday February 07, 2022 @09:28PM (#30254262)
Please just give me a checkbox input that sends true/false instead of true/nothing
Re:Vue 3 as the New Default by DaiPlusPlus on Monday February 07, 2022 @11:47PM (#30254993)
I agree radio and checkbox inputs are still huge warts in HTML forms, though there is a workaround: if you have a hidden input with the same name and "false" value then you'll get what you want. See here for an example: https://stackoverflow.com/questions/2697299/
Re:Vue 3 as the New Default by earthboundkid on Tuesday February 08, 2022 @01:13PM (#30262127)
"Web Component" is a great name, but Shadow DOM and Custom Element are terrible APIs. WHATWG should just quietly abandon them and then come up with "Web Components 2.0" based on a native reactivity system, native VDOM diffing, and (this already a thing) CSS layers for style isolation.
Re:Vue 3 as the New Default by no_way on Tuesday February 08, 2022 @01:39AM (#30255558)
Re:Vue 3 as the New Default by dham on Tuesday February 08, 2022 @08:21AM (#30258028)
Yes, gotcha. That's why I have in parenthesis

> (finally going to be a thing)

Re:Vue 3 as the New Default by Seb-C on Tuesday February 08, 2022 @11:31AM (#30260457)
I've been thinking like forever that if we had a standard, pure-html equivalent to jQuery's `$('.foo').load('url...')`, we could have a lot of great sites without any JS at all (I'm not talking about the minority of legit cases where react/vue/angular shines).

Similar to a link targetting an iframe, but without an actually ugly iframe.

Re:Vue 3 as the New Default by earthboundkid on Tuesday February 08, 2022 @01:14PM (#30262142)
Are you familiar with HTMX? Sounds like what you want. I'm not a huge fan, but I think it would be good if something like it were a native capability.
Re:Vue 3 as the New Default by Seb-C on Wednesday February 09, 2022 @11:17AM (#30274409)
Yes, that's the same core idea. I mean, there are plenty of solutions in JS, and it's a one-liner with fetch anyway, but having a native way would have been cool.

I was thinking about something more like `<a href="..." target="#someDiv">`.

That could be some handy (albeit rudimentary) foundation to build maintainable sites on a static server without any JS or build pipeline.

Re:Vue 3 as the New Default by andrei_says_ on Monday February 07, 2022 @06:13PM (#30252834)
Styling a radio button, a select box and a slider would be amazing, too.

Now the only option is to replace them which is quite sad.

Re:Vue 3 as the New Default by dham on Monday February 07, 2022 @06:18PM (#30252876)
Yea you're right, that's like the biggest one. Can't believe I forgot that.
Re:Vue 3 as the New Default by DaiPlusPlus on Monday February 07, 2022 @06:45PM (#30253160)
Last year they introduced the CSS `accent-color` property: https://www.w3.org/TR/css-ui-4/
Re:Vue 3 as the New Default by andrei_says_ on Wednesday February 09, 2022 @09:41AM (#30273131)
I’d like to make them larger and easier to target. It’s trivial to do this for form fields.
Re:Vue 3 as the New Default by justsomehnguy on Monday February 07, 2022 @06:09PM (#30252777)
> and give us a way to style a select box

How many end-users complained what a select box is not styled?

Re:Vue 3 as the New Default by dham on Monday February 07, 2022 @06:10PM (#30252793)
I hear you, that's another thing that has plagued our industry. Most of the time a regular select box is fine, but sometimes you need to have images or something more in the options (colors, etc)
Re:Vue 3 as the New Default by brimble on Monday February 07, 2022 @08:47PM (#30254010)
None, probably, but these days it's de rigeur to spend half a (web or mobile) project's budget making sure even the select boxes are "on brand" and "delightful" or whatever. Often at the expense of usability.