We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6823349 commit 2b65583Copy full SHA for 2b65583
src/nodes/html.ts
@@ -521,9 +521,9 @@ export default class HTMLElement extends Node {
521
/**
522
* Query CSS Selector to find matching node.
523
* @param {string} selector Simplified CSS selector
524
- * @return {HTMLElement} matching node
+ * @return {(HTMLElement|null)} matching node
525
*/
526
- public querySelector(selector: string) {
+ public querySelector(selector: string): HTMLElement | null {
527
return selectOne(selector, this as HTMLElement, {
528
xmlMode: true,
529
adapter: Matcher,
0 commit comments