* 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)
| 101 | * @returns The matching element, if any. |
| 102 | */ |
| 103 | getTag(attrSelector: string): HTMLMetaElement | null { |
| 104 | if (!attrSelector) return null; |
| 105 | const meta = this._doc.querySelector(`meta[${attrSelector}]`); |
| 106 | return meta?.nodeName.toLowerCase() === 'meta' ? meta : null; |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Retrieves a set of `<meta>` tag elements in the current HTML document. |
no outgoing calls
no test coverage detected