* Retrieves a ` ` tag element in the current HTML document. * @param attrSelector The tag attribute and value to match against, in the format * `"tag_attribute='value string'"`. * @returns The matching element, if any.
(attrSelector: string)
| 97 | * @returns The matching element, if any. |
| 98 | */ |
| 99 | getTag(attrSelector: string): HTMLMetaElement | null { |
| 100 | if (!attrSelector) return null; |
| 101 | const meta = this._doc.querySelector<HTMLMetaElement>(buildMetaSelector(attrSelector)); |
| 102 | return isMetaTag(meta) ? meta : null; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Retrieves a set of `<meta>` tag elements in the current HTML document. |
no test coverage detected