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

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

-Boris

Received on Thursday, 11 February 2010 18:10:32 UTC