[whatwg] Parsing entities

On Mon, 14 Aug 2006, Simon Pieters wrote:
> > 
> > Section 8.2.3.1 "Tokenising entities", under "Anything else", covers this:
> > "Consume the maximum number of characters possible, with the consumed
> > characters case-sensitively matching one of the identifiers in the first
> > column of the entities table".
> 
> I've read that several times. But it doesn't say that "i;" in "&noti;" 
> is going to be reparsed. ("noti" isn't an entity, but "not" and "notin" 
> are.)

In "&noti;", the "maximum number of characters possible" that 
"case-sensitively [match] one of the identifiers in the first column of 
the entities table" is "not".

Thus you consume the "&", the three characters "not", and emit the 
character for "¬".

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

Received on Monday, 14 August 2006 15:19:08 UTC