[whatwg] Parsing entities

Ian Hickson ian at hixie.ch
Mon Aug 14 15:19:08 PDT 2006


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 "¬i;" 
> is going to be reparsed. ("noti" isn't an entity, but "not" and "notin" 
> are.)

In "¬i;", 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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list