[whatwg] Parsing (and syntax): < in unquoted attribute values

On Wed, 29 Nov 2006, Simon Pieters wrote:
> 
> The parsing section says that < in unquoted attribute values are a parse 
> error and that it causes the tag token to be emitted. As far as I can 
> tell < does not emit the tag token in at least Firefox, IE6 or Safari. 
> Is it intentional to emit the tag token here? (If it is, why?)
> 
> If not, should it still be a parse error (and be disallowed in the 
> syntax section)?

I've removed special processing of "<".

Note that the following cases no longer close start tags, despite them 
working interoperably in Safari and Firefox:

   <div<p>
   <div title <p>
   <div title=""<p>

And the following two no longer close tags either (only worked in 
Firefox):

   <div title<p>
   </div<p>

All of these were allowed in SGML, as I understand it.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 14 June 2007 18:45:15 UTC