Ruminations, Haunts, and Errors

2004-07-13

XHTML and CSS id attribute

Why oh why did the standards committee decide that the value of the id attribute in CSS (and subsequently XHTML) couldn’t start with a digit? Generating element ids using serial numbers seems like a pretty common and sensible way to go, but apparently not if you want strictly valid documents. Sigh.