Hi Colin,

> > > Incidentally (and not on topic for your question)
> > > <td/>
> > > is not valid in either HTML or XHTML.
>
> > It's valid XHTML for an empty table cell.
>
> Wrong. It's a common misconception (which I had myself until
> recently).

If so, it's a misconception the W3C's own validator shares.
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On Aug 19, 10:24 am, ColinFine <[email protected]> wrote:
> On Aug 18, 4:47 pm, "T.J. Crowder" <[email protected]> wrote:
>
> > Colin,
>
> > > Incidentally (and not on topic for your question)
> > > <td/>
> > > is not valid in either HTML or XHTML.
>
> > It's valid XHTML for an empty table cell.
>
> Wrong. It's a common misconception (which I had myself until
> recently).
>
> "All elements other than those declared in the DTD as EMPTY must have
> an end tag. Elements that are declared in the DTD as EMPTY can have an
> end tag or can use empty element shorthand (see Empty
> Elements)." (http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.3)
>
> That is, elements DECLARED TO BE EMPTY may use the shorthand. Elements
> which happen to have no content may not.
>
> I discovered this when Firefox correctly objected to <td/> or
> something when I had given it an XTHML-Strict DOCTYPE.
>
> > > Also, <td> does not have a 'type' attribute. I believe browsers
> > > generally do let you set an arbitrary attribute (though I haven't
> > > found anything in the HTML spec that explicitly permits it)...
>
> > It is in fact verboten.  
>
> Is it? I couldn't find an explicit statement that only the defined
> attributes were permitted, though it is implied (and I thought I had
> found somewhere in the HTML spec where it referred to 'attributes
> defined in this specification', which might be taken to imply that
> other attributes were permitted; but I can't find that now).
>
> In HTML5, though, we're allowed to use our
>
>
>
> > own attributes as long as their names start with "data-", e.g.:
>
> >     <td data-foo='bar'>
>
> > ...is valid but
>
> >     <td foo='bar'>
>
> > ...is not.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to