Re: id Attribue For script Tag (PR#8617)

> 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.

In fact it is the other way round.

'id' was not allowed on <script> in HTML4, and so therefore nor in XHTML1.

However, in the second edition of XHTML1 we added 'id' to *all* elements.

The second edition of XHTML1.1 has not been finalised yet, awaiting the  
second edition of XML Schema, but you will find 'id' applied to all  
elements there too.

Best wishes,

Steven Pemberton
Chair, W3C HTML Working Group

Received on Wednesday, 20 October 2004 13:58:22 UTC