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

x/html_parser/src/mod.ts>DomUtils.nextElementSibling

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

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.