XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 18th, 2002, 03:38 PM
changhai changhai is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 49 changhai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 57 m 57 sec
Reputation Power: 6
Question Are these Mozilla bugs?

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?

Reply With Quote
  #2  
Old December 21st, 2002, 08:55 PM
dabean dabean is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 15 dabean User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Are these Mozilla bugs?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway