> >That has nothing to do with _validating custom attributes_ though. > >The above error shows the attributues are already in the markup. An > >own DTD helps validating them: > > > >http://www.alistapart.com/articles/customdtd/ > >http://www.alistapart.com/articles/scripttriggers/ > > > >If it is worth the hassle is up to you tough :-) > > > But if you left them out of the XHTML and then added the attributes to > the elements using JS and DOM via the body.onload, it would validate but > the elements would have those attributes when they needed to be refered to. Invalid code is invalid code. Does not really matter how you generate it. -- Chris Heilmann Blog: http://www.wait-till-i.com Writing: http://icant.co.uk/ Binaries: http://www.onlinetools.org/