News for hackers. Stuff that matters.
Re:Select2 - A better way to make select boxes (with jQuery) by eurleif on Thursday June 07, 2012 @02:38PM (#4080592)
This is outside the scope of the W3C, and within the scope of browser vendors. The HTML specification doesn't say how a select element should be rendered, just that it should allow the user to choose from a list of options. That browsers all render select elements roughly the same is convention, not specification, and browser vendors could change if they wanted to.
Re:Select2 - A better way to make select boxes (with jQuery) by krsunny on Friday June 08, 2012 @12:20AM (#4082660)
It's entirely within the scope of the W3C and IE6 is proof enough that vendors shouldn't implement things however they choose.
Re:Select2 - A better way to make select boxes (with jQuery) by eurleif on Friday June 08, 2012 @12:24AM (#4082670)
Yes, vendors shouldn't do whatever they want, they should stick to the spec. In this case, the spec allows any rendering for select elements which allows the user to choose from a list of options. Using a different rendering from other browser does not violate the spec.
Re:Select2 - A better way to make select boxes (with jQuery) by enjo on Friday June 08, 2012 @01:05AM (#4082765)
I've always felt like this was a major shortcoming of the specification. Inputs should have some consistent visual specification along with support for a well-defined set of styling options. We go through all of these gyrations precisely because the spec. doesn't define standard behavior. The differences in color, size, and shape from platform to platform (and browser to browser) can be very problematic for anyone trying to make the web beautiful.
Re:Select2 - A better way to make select boxes (with jQuery) by Someone on Saturday June 09, 2012 @04:37AM (#4087615)
The other side of the argument is that it is beneficial that browsers determine how such elements work. If they did not, millions of mobile users would be struggling with tiny but beautifully rendered UI elements.