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

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