On Tue, Feb 9, 2010 at 10:05 PM, Biju <span dir="ltr"><<a href="mailto:bijumaillist@gmail.com">bijumaillist@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What should a user agent display when html content is...<br>
<br>
<html><body><br>
<%@ page language="java" %><br>
</body></html><br>
<br>
At present IE and Safari display blank<br>
<br>
Firefox display <%@ page language="java" %><br>
<br>
And for document.body.innerHTML browsers give<br>
Firefox --> <%@ page language="java" %><br>
IE --><%@ page language="java" %><br>
and Safari gives blank<br>
<br>
Also for<br>
<html><body><br>
<? some text ?><br>
</body></html><br>
<br>
Firefox gives blank<br>
<br>
But for<br>
<html><body><br>
abc <? echo ">" ?> xyz<br>
</body></html><br>
<br>
Firefox display...<br>
abc " ?> xyz<br>
<br>
ie, all the contents after first ">"<br>
with .innerHTML --> abc " ?> xyz<br>
<br>
IE in this case again hide all content till "?>"<br>
as well as preserve content including the white space in innerHTML<br>
<br>
Due to these problems browsing corporate intranet with Firefox is<br>
little irritating.<br>
Calling help desk and asking to provide fix will get a reply that<br>
company has standardized on IE6, so please use IE.<br>
<br>
<br>
So per HTML standard in both case what should user agent display and<br>
as well as content of .innerHTML<br>
<br>
Thanks<br>
<font color="#888888">Biju<br>
</font></blockquote></div><br>For what it's worth, I filed a Mozilla bug on a similar issue, and it was marked INVALID.<br><br><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=477455">https://bugzilla.mozilla.org/show_bug.cgi?id=477455</a><br>
Parser does not wait for "?>" to close blocks that begin with "<?"<br><br>(Incidentally, Hixie didn't care all that much. :) )<br><br>Gordon<br clear="all"><br>-- <br>Gordon P. Hemsley<br><a href="mailto:me@gphemsley.org">me@gphemsley.org</a><br>
<a href="http://gphemsley.org/">http://gphemsley.org/</a> • <a href="http://gphemsley.org/blog/">http://gphemsley.org/blog/</a><br><a href="http://sasha.sourceforge.net/">http://sasha.sourceforge.net/</a> • <a href="http://www.yoursasha.com/">http://www.yoursasha.com/</a><br>