Skip to content

Commit

Permalink
Merge pull request #118 from hugmanrique/main
Browse files Browse the repository at this point in the history
nextElementSibling returns an HTMLElement
  • Loading branch information
taoqf committed May 22, 2021
2 parents ed5391c + 607c003 commit bc6ba6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ export default class HTMLElement extends Node {
}
}

public get nextElementSibling(): Node {
public get nextElementSibling(): HTMLElement {
if (this.parentNode) {
const children = this.parentNode.childNodes;
let i = 0;
Expand Down

0 comments on commit bc6ba6e

Please sign in to comment.