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

Biju bijumaillist at gmail.com
Tue Feb 9 19:05:03 PST 2010

What should a user agent display when html content is...

<%@ page language="java" %>

At present IE and Safari display blank

Firefox display <%@ page language="java" %>

And for document.body.innerHTML browsers give
Firefox --> <%@ page language="java" %>
IE --><%@ page language="java" %>
and Safari gives blank

Also for
<? some text ?>

Firefox gives blank

But for
abc <? echo ">"  ?> xyz

Firefox display...
abc " ?> xyz

ie, all the contents after first ">"
with .innerHTML --> abc "  ?> 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


More information about the whatwg mailing list