europa-core
Version:
Europa core engine for converting HTML into valid Markdown
22 lines (21 loc) • 842 B
TypeScript
import { DomElement } from "./DomElement";
import { DomNode } from "./DomNode";
/**
* A cross-platform wrapper for a DOM parent node that exists within a {@link Dom}.
*/
export interface DomParentNode extends DomNode {
/**
* Returns the first DOM element that matches the specified `selector` within this DOM node wrapper.
*
* @param selector - The selector to be used.
* @return The wrapper for the first DOM element matching `selector` or `undefined` if none could be found.
*/
find(selector: string): DomElement | undefined;
/**
* Returns all DOM elements that match the specified `selector` within this DOM node wrapper.
*
* @param selector - The selector to be used.
* @return The DOM element wrappers matching `selector`.
*/
findAll(selector: string): DomElement[];
}