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

Boris Zbarsky bzbarsky at MIT.EDU
Thu Feb 11 18:10:32 PST 2010


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



More information about the whatwg mailing list