On Mon, 29 Nov 2004 14:33:00 +0100, VK <sc**********@yahoo.com> wrote:
Is <caption> not an official part of the table structure?
Yes, of course.
Usually Microsoft's methods/properties is a real junkyard, where you can
find ANY imaginable and unimaginable stuff. Still I couldn't find any
for <caption>, so it's out of TOM, I guess.
You weren't looking very hard, were you. :P
A HTMLTableElement object has a caption property which returns the
HTMLTableCaptionElement object associated with that table, or null if one
doesn't exist. Though Microsoft don't describe it that way, the caption
property was (reportedly) implemented from IE 4 onwards.
The HTMLTableCaptionElement object doesn't officially (that is, according
to the W3C) have any properties of its own[1] in a Strict document (only
align, which is deprecated), so the most you'll probably be doing is
accessing the text nodes it contains.
And how would you treat <caption> by DOM?
Hopefully I've covered that.
Mike
[1] It does, of course, have various inherited properties, including the
style object.
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.