W3C home > Mailing lists > Public > www-validator@w3.org > November 2003

Empty <script> bug (XHTML documents)

From: Beton, Richard <richard.beton@roke.co.uk>
Date: Mon, 03 Nov 2003 15:14:30 +0000
To: www-validator@w3.org
Message-ID: <3FA670D6.3000708@roke.co.uk>

I have noticed that XHTML documents are passed as valid even when they 
contain empty <script> elements. For example,

  <script src="js/whatever.js"/>

is not considered to infringe the DTD, which specifies that <script> 
contains PCDATA.

Is this a bug in the W3C Validator?
Rick

[ref: XHTML1.0: 
http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict]

--
Registered Office: Roke Manor Research Ltd, Siemens House, Oldbury, Bracknell,
Berkshire. RG12 8FZ

The information contained in this e-mail and any attachments is confidential to
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create or
change any contractual relationship.
Received on Monday, 3 November 2003 10:18:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:10 GMT