The blog has moved to http://jessehouse.com/ ... Many google searches point here so I am leaving it operational, but there will be no new posts.
Showing posts with label valid html. Show all posts
Showing posts with label valid html. Show all posts

Saturday, April 11, 2009

accesskey attribute on the select tag is not valid?

Was just running some validation on a html form and it failed with the following error
"Invalid markup: line 68: Attribute "accesskey" exists, but can not be used for this element."

From w3c spec - "The following elements support the accesskey attribute: A, AREA, BUTTON, INPUT, LABEL, and LEGEND, and TEXTAREA."

I have no idea why input and textarea would be supported but not select? this seems like a mistake? At least there is an easy work around - apply the accesskey attribute to the label tag that references the select menu.