POP Quiz time!
How do these three bits of HTML get parsed?
- <foo bar=baz/>
(no space between the value and the slash
- <foo bar=baz />
(space after the unquoted value)
- <foo bar=”baz”/>
(quoted attribute value)
The value of the bar attribute in the first example is literally “baz/” with the slash, and no errors or warnings are generated. The second and third ones are parsed out as “baz” as most people would probably expect.