Tuesday, November 24, 2009

xhtml, html and file extensions

I lost 30 min trying to understand why my proposal for handling String timezones in maven POM files (a la 'Europe/Oslo' instead of '+1' that doesn't take into account summer time) wasn't working in firefox 3.5.5 but was working in chrome 4.0.250.0 and opera 10.01:

If I understood well, files served as .html are loaded as HTML files not as XHTML files in firefox, even if the doctype is XHTML transitional. So >script ... /> are turned into >script< and thus mess up the next element... w3c validation doesn't say anything.

I am still unsure this is how it should work, but using <script ...></script> solves it.

thanks to #firefox on moznet for help.

No comments:

Post a Comment