W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2007

[whatwg] /, < and > in charset sniffing attribute name state

From: Henri Sivonen <hsivonen@iki.fi>
Date: Fri, 1 Jun 2007 21:44:44 +0300
Message-ID: <E95E4DDC-3754-4E9C-882C-D3A37262E9DA@iki.fi>
In the charset meta sniffing algorithm under "Attribute name:":

> If it is 0x2F (ASCII '/'), 0x3C (ASCII '<'), or 0x3E (ASCII '>')
>     Stop looking for an attribute. The attribute's name is the  
> value of attribute name, its value is the empty string.

In general, it seems to me the algorithm isn't quite clear on when to  
stop looking for the current attribute and when to stop looking for  
attributes for the current tag altogether.

In this step, it seems to me that '/' should advance the pointer and  
end getting the current attribute followed by getting another  
attribute. '>' should end getting attributes on the whole tag without  
changing the pointer. '<' should move the pointer backwards a step  
and end getting attributes on the whole tag.


Henri Sivonen
hsivonen at iki.fi
Received on Friday, 1 June 2007 11:44:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:56 UTC