Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/html_parser/src/utils/traversal.ts>nextElementSibling

Port of fb55/htmlparser2 for Deno
Latest
function nextElementSibling
import { nextElementSibling } from "https://deno.land/x/html_parser@v0.1.3/src/utils/traversal.ts";

Returns the next element sibling of a node.

Parameters

elem: Node

The element to get the next sibling of.

Returns

Element | null

elem's next sibling that is a tag.