Originally Posted by Arbitrator
This isn't true;
option elements can have
id attributes. See:
You tell me something. But I have never had any occasion to use an option id.
But surely an id may not start with a number?
From the HTML 4 specification: ID and NAME tokens must begin with a letter ([A-Za-z])
I tested your script and - amazingly it works in HTML4 (no !DOCTYPE)! Why is that?
I read that HTML5 gets rid of the additional restrictions on the id attribute. The only requirements left — apart from being unique in the document — are that the value must contain at least one character (can’t be empty), and that it can’t contain any space characters.
Could you devise an example where an option id is really useful?