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

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

From: Simon Pieters <simonp@opera.com>
Date: Fri, 12 Feb 2010 09:06:23 +0100
Message-ID: <op.u7z8sxhqidj3kv@simon-pieterss-macbook.local>
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
Received on Friday, 12 February 2010 00:06:23 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC