Single-quoted attributes are valid HTML

The subj is a small surprise for me, but it's true - single quotes for attributes are valid HTML:

<input type='checkbox' />
By default, SGML requires that all attribute values be delimited using either double quotation marks (ASCII decimal 34) or single quotation marks (ASCII decimal 39).
AttValue ::= '"' ([^<&"] | Reference)* '"'  | "'" ([^<&'] | Reference)* "'"

Comments

Popular posts from this blog

Web application framework comparison by memory consumption

Trac Ticket Workflow

Python vs JS vs PHP for embedded systems