📜 ⬆️ ⬇️

Opera and FF do not strictly comply with HTML :)

From here: http://lazyboa.livejournal.com/880046.html

OPTION element
[ Link ]
label = text [CS]
This is an attribute that allows you to specify the content of the OPTION element. If you’ve selected an item, you’ll not be able to use this option.

[ Link ]
3. SHOULD This word, or the adjective "RECOMMENDED", mean that there
may exist
be sure to understand and
carefully weighed before choosing a different course.
')
Well, for a valid reason, this was found in the authors of FF and Opera.



If the page suddenly disappears, here’s the code:

<head><title></title></head>
<body><select name=ProductNames size=10 multiple>
<option value="1" label=" ">1</option>
<option value="3" label=" 0.5 ">3</option>
<option value="4" label=" 7676 ">4</option>
<option value="8" label=" CD ()">8</option>
<option value="6" label=" ">6</option>
<option value="7" label=" ">7</option>
</select></body></html>


Indeed, in IE6 / IE7, as written in the standard, the values ​​of the label attribute are shown. And in Opera 9 and Firefox 2, the values ​​of the OPTION tag itself are shown, although there must be values ​​for the label attribute.

Is IE6 / 7 valid opera and firefox in this sense? Why, I wonder, so? Or are we with lazyboa wrong?

upd
in fairness, the same error in Links, Amaya, Safari

It turns out, only IE complies with the standard (in this part)?

upd2
minus the post ... and it’s a pity they don’t like habrareyd firefox critics ... and even in bugzilla there is this bug.

Source: https://habr.com/ru/post/18107/


All Articles