[whatwg] text/html conformance checkers and PIs

Ian Hickson ian at hixie.ch
Fri Feb 24 16:07:07 PST 2006


On Sat, 23 Jul 2005, Henri Sivonen wrote:
>
> What should text/html HTML5 conformance checkers do about PIs?

A "?" character found during the "tag open state" (immediately after a "<" 
character, in other words) causes the tokeniser to switch to the bogus 
comment state, which closes at the first occurance of ">".

So basically, PIs get parsed just like in SGML, except that they get added 
to the DOM as a Comment node instead of a PI node.

-- 
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