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

x/html_parser/src/utils/mod.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/mod.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.