Originally posted by Rodders
As for the HTML/XML standards,
On that subject, TheDefender's attribute should have been written readonly="readonly". HTML4.01 allows attributes with no values, but XHTML1.0 isn't as lenient (being a dialect of XML, which isn't, either).
When it comes to quoting attributes in HTML, the official word is that "In certain cases, authors may specify the value of an attribute without any quotation marks. The attribute value may only contain letters (a-z and A-Z), digits (0-9), hyphens (ASCII decimal 45), periods (ASCII decimal 46), underscores (ASCII decimal 95), and colons (ASCII decimal 58). We recommend using quotation marks even when it is possible to eliminate them."