Methods for CAPTION?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • VK

    #1

    Methods for CAPTION?

    Is <caption> not an official part of the table structure?

    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.

    And how would you treat <caption> by DOM?


  • Andrew Thompson

    #2
    Re: Methods for CAPTION?

    On Mon, 29 Nov 2004 14:33:00 +0100, VK wrote:
    [color=blue]
    > Is <caption> not an official part of the table structure?[/color]

    The only source worth asking..
    <http://www.w3.org/TR/REC-html40/index/elements.html>

    --
    Andrew Thompson
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.PhySci.org/ Open-source software suite
    http://www.1point1C.org/ Science & Technology
    http://www.LensEscapes.com/ Images that escape the mundane

    Comment

    • VK

      #3
      Re: Methods for CAPTION?

      So, deprecated...
      Shame though...


      Comment

      • Joakim Braun

        #4
        Re: Methods for CAPTION?

        "VK" <schools_ring@y ahoo.com> skrev i meddelandet
        news:41ab2d1f$0 $23325$9b622d9e @news.freenet.d e...[color=blue]
        > So, deprecated...
        > Shame though...[/color]

        No, the align attribute of the caption is deprecated.

        Did you try getElementsByTa gName("caption" ) on a table DOM object?

        Joakim Braun


        Comment

        • Michael Winter

          #5
          Re: Methods for CAPTION?

          On Mon, 29 Nov 2004 14:33:00 +0100, VK <schools_ring@y ahoo.com> wrote:
          [color=blue]
          > Is <caption> not an official part of the table structure?[/color]

          Yes, of course.
          [color=blue]
          > 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.[/color]

          You weren't looking very hard, were you. :P

          A HTMLTableElemen t object has a caption property which returns the
          HTMLTableCaptio nElement 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 HTMLTableCaptio nElement 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.
          [color=blue]
          > And how would you treat <caption> by DOM?[/color]

          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.

          Comment

          Working...