Function getTableCaption

  • Tries to find a caption/description of the element by getting the closest element (listed by highest priority) that matches any of:

    • HTMLTableCaptionElement: table caption element (<caption>)
    • HTMLHeadingElement: heading element (<h1> - <h6>)
    • soon: checks if the previous element contains an child element that is an instance of an HTMLHeadingElement

    If it can't find either, it will return an empty string.

    Parameters

    • table: HTMLTableElement

    Returns string

Generated using TypeDoc