W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2004

Re: id Attribue For script Tag

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Tue, 24 Aug 2004 21:08:35 +0200
Message-ID: <412B9233.70706@annevankesteren.nl>
To: Grant Husbands <www-html-editor@grant.x43.net>
CC: www-html-editor@w3.org

> I've recently been validating a document that has an id attribute on a
> script tag. According to the XHTML 1.0 DTD, that seems to be valid.
> According to the XHTML 1.1 DTD, it does not seem to be valid. However,
> Appendix A in XHTML 1.1 does not list the removal of that id as a change
> from XHTML 1.0. Also, two of the four validators that I've tried (Page Valet
> and ARealValidator) claim that id isn't a valid attribute of script, anyway,
> regardless of the XHTML DTD used (I've e-mailed the authors of those,
> separately).
> The id for the script in the page I'm validating is going to be removed,
> because it's not very useful, but XHTML 1.1 would seem to be in error in
> removing that attribute, according to its own appendix.
> Or am I barking up the wrong tree?

I used to think that too (although it was about a different ID 
attribute)[1]. Now I think of it again, it probably has to do with the 
fact that XHTML 1.1 only marks the changes between XHTML 1.0 *First 
Edition* and XHTML 1.1, not between XHTML 1.1 and XHTML 1.0 *Second 

I still think the W3C should update the XHTML Modularization Second 
Edition working draft (XHTML 1.1 was based on the First Edition) to 
include the ID, CLASS and possibly the TITLE attributes on every element.


  Anne van Kesteren
Received on Tuesday, 24 August 2004 19:09:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:53 UTC