Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Jul 24, 2024
1 parent b2f7590 commit b966410
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ export class DOMSelector extends Finder {
} else {
document = node?.ownerDocument;
}
if (document === this.#document &&
document?.contentType === 'text/html') {
if (document === this.#document && document.contentType === 'text/html') {
const filterOpt = {
complex: false,
descendant: false,
Expand Down Expand Up @@ -165,8 +164,7 @@ export class DOMSelector extends Finder {
} else {
document = node?.ownerDocument;
}
if (document === this.#document &&
document?.contentType === 'text/html') {
if (document === this.#document && document.contentType === 'text/html') {
const filterOpt = {
complex: false,
descendant: true,
Expand Down

0 comments on commit b966410

Please sign in to comment.