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?

[ref: XHTML1.0: 

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:39 UTC