W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2006

[whatwg] text/html conformance checkers and PIs

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 25 Feb 2006 00:07:07 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0602250002470.315@dhalsim.dreamhost.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 24 February 2006 16:07:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:26 UTC