Tries to find a caption/description of the element by getting the closest element (listed by highest priority) that matches any of:
HTMLTableCaptionElement
<caption>
HTMLHeadingElement
<h1>
<h6>
If it can't find either, it will return an empty string.
Generated using TypeDoc
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>
)If it can't find either, it will return an empty string.