This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2769 - XHTML 1.0 Strict Script error
Summary: XHTML 1.0 Strict Script error
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 10:59 UTC by david kuridza
Modified: 2006-01-26 11:08 UTC (History)
0 users

See Also:


Attachments

Description david kuridza 2006-01-26 10:59:17 UTC
I use XHTML 1.0 Strict as DTD and I found something really funny. If you have
<script type="text/javascript" href="foo.js" /> in your code, you get "This Page
Is Valid XHTML 1.0 Strict!". As a result, Internet Explorer and Opera (I haven't
checked the others) do display only blank white page while Firefox (on PC/Mac)
and Safari ignore the opened tag and display it like it's supposed to be. As far
as I know, <script> must not be used as a singleton tag.
Comment 1 Bj 2006-01-26 11:08:29 UTC
This is allowed, it's just not compatible with the text/html media type. Use 
application/xhtml+xml instead, or to find such problems you might want to try 
http://qa-dev.w3.org/~bjoern/appendix-c/validator