
December 21st, 2002, 08:55 PM
|
|
Member
|
|
Join Date: Jul 2001
Posts: 15
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Re: Are these Mozilla bugs?
Quote: Originally posted by changhai
I noticed that if I change the name extension of an XHTML validated file from .html to .xhtml, Mozilla will only display the background color (specified in the <body> tag or in a css file) in a minimal rectangle enclosing the page content. Beyond that, the background is still white. I found this behavior on Mozilla 1.0, did anyone else observe similar phenomenon? Is this a Mozilla bug?
Also, did anyone notice that in a file named something.xhtml, all the inline javascripts between <script></script> are ignored, does anyone know the reason? |
A .xhtml extension forces mozilla into xml mode, your file is more than likely not 100% valid xml, even if the w3c validator says it is. Firstly in xml mode scripts encased by comments <!-- --> won't work (stated in w3c standard, validator doesn't check), secondly in xml mode BODY and body mean different things inside your stylesheet (w3c CSS validator doesn't understand case sensitivity). Finnaly if your using the .xhtml extension (not a god thing to do btw) you should be serving the page with the content type "application/xml+xhtml", which will severely break IE.
|