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 3658 - <script src="external.js" type='text/javascript'/> Validates even in strict.
Summary: <script src="external.js" type='text/javascript'/> Validates even in strict.
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-09-05 23:43 UTC by Ben Gibb
Modified: 2006-09-06 01:10 UTC (History)
0 users

See Also:


Attachments

Description Ben Gibb 2006-09-05 23:43:23 UTC
Script tags CAN NOT be empty.
http://www.htmlhelp.com/tools/validator/direct.html.en will correctly complain about the missing </script> tag.
Comment 1 Olivier Thereaux 2006-09-06 01:10:12 UTC
Unless I am mistaken, and assuming that you are talking about XHTML1:

* there is nothing in the XHTML 1 grammar prohibiting this construct

* the only relevant part of the XHTML1 specification is the informative appendix C3 - http://www.w3.org/TR/xhtml1/#C_3

* the appendix C is only relevant in some cases (xhtml 1 served as text/html), and has nothing to do with validation. 

* there is an appendix C checker in the works, which will warn users of XHTML 1 served as text/html of such potential problems with legacy user agents.

Hence, closing this bug as "not a bug in the validator". 

If my assessment is incorrect, feel free to clarify your report with actual details, a pointer to a test document, and references as to why you think this should be a validation error.

Thank you.