[whatwg] <% text %> and <? text ?> in corporate intranet html content

Simon Pieters simonp at opera.com
Fri Feb 12 00:06:23 PST 2010


On Fri, 12 Feb 2010 03:10:32 +0100, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 2/11/10 3:07 AM, Biju wrote:
>> the text inside<% and %>  may contain any number of percentage sign or
>> greater than sign,
>> as long as they dont make a "%>" pair.
>
> OK....
>
>> If you see<? some text>  treat it like a HTML comment.
>> Again for this also a comment node will be created  in DOM,
>> and when its parent nodes .innerHTML is displayed the original content
>> will be shown with out altering.
>> the text inside<? and>  may contain any number of question mark or
>> greater than sign,
>> as long as greater than sign is enclosed in single quote or double  
>> quote.
>
> Hmm.  So more or less faking PIs?
>
>> I agree that allowing  "?>"  part is weird, they should have done it
>> same way as "<% text %>"
>
> I don't see why; for PIs the IE behavior actually sort of makes sense....

PIs in SGML and XML are not sensitive to quote marks.

Also see  
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2007-September/012458.html

-- 
Simon Pieters
Opera Software



More information about the whatwg mailing list