Skip to content

Commit bc6ba6e

Browse files
authored
Merge pull request taoqf#118 from hugmanrique/main
nextElementSibling returns an HTMLElement
2 parents ed5391c + 607c003 commit bc6ba6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodes/html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ export default class HTMLElement extends Node {
811811
}
812812
}
813813

814-
public get nextElementSibling(): Node {
814+
public get nextElementSibling(): HTMLElement {
815815
if (this.parentNode) {
816816
const children = this.parentNode.childNodes;
817817
let i = 0;

0 commit comments

Comments
 (0)