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

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

From: Gordon P. Hemsley <gphemsley@gmail.com>
Date: Mon, 15 Feb 2010 03:14:04 -0500
Message-ID: <fda8f3c51002150014k697a6e91h50c35e4eb52815ed@mail.gmail.com>
On Tue, Feb 9, 2010 at 10:05 PM, Biju <bijumaillist at gmail.com> wrote:

> What should a user agent display when html content is...
>
> <html><body>
> <%@ page language="java" %>
> </body></html>
>
> At present IE and Safari display blank
>
> Firefox display <%@ page language="java" %>
>
> And for document.body.innerHTML browsers give
> Firefox --> &lt;%@ page language="java" %&gt;
> IE --><%@ page language="java" %>
> and Safari gives blank
>
> Also for
> <html><body>
> <? some text ?>
> </body></html>
>
> Firefox gives blank
>
> But for
> <html><body>
> abc <? echo ">"  ?> xyz
> </body></html>
>
> Firefox display...
> abc " ?> xyz
>
> ie, all the contents after first ">"
> with .innerHTML --> abc "  ?&gt; xyz
>
> IE in this case again hide all content till "?>"
> as well as preserve content including the white space in innerHTML
>
> Due to these problems browsing corporate intranet with Firefox is
> little irritating.
> Calling help desk and asking to provide fix will get a reply that
> company has standardized on IE6, so please use IE.
>
>
> So per HTML standard in both case what should user agent display and
> as well as content of .innerHTML
>
> Thanks
> Biju
>

For what it's worth, I filed a Mozilla bug on a similar issue, and it was
marked INVALID.

https://bugzilla.mozilla.org/show_bug.cgi?id=477455
Parser does not wait for "?>" to close blocks that begin with "<?"

(Incidentally, Hixie didn't care all that much. :) )

Gordon

-- 
Gordon P. Hemsley
me at gphemsley.org
http://gphemsley.org/ ? http://gphemsley.org/blog/
http://sasha.sourceforge.net/ ? http://www.yoursasha.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100215/9a40f3ed/attachment.htm>
Received on Monday, 15 February 2010 00:14:04 UTC

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