Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/path-exists/../duplexify/./.././debug/../node-wav/../domhandler/../qrcode/../ieee754/../asynckit/../toidentifier/../@whiskeysockets/../function-bind/../split2/../@tokenizer/./../ws/../base64id/../@thi.ng/../form-data/./../mime/../engine.io/../././pngjs/../@whiskeysockets/../pino/../url/../decamelize/../mime/../axios/../qs/./../domutils/lib/esm
الملفات الموجودة في هذا الـ Path:
.
..
feeds.d.ts
feeds.d.ts.map
feeds.js
feeds.js.map
helpers.d.ts
helpers.d.ts.map
helpers.js
helpers.js.map
index.d.ts
index.d.ts.map
index.js
index.js.map
legacy.d.ts
legacy.d.ts.map
legacy.js
legacy.js.map
manipulation.d.ts
manipulation.d.ts.map
manipulation.js
manipulation.js.map
package.json
querying.d.ts
querying.d.ts.map
querying.js
querying.js.map
stringify.d.ts
stringify.d.ts.map
stringify.js
stringify.js.map
traversal.d.ts
traversal.d.ts.map
traversal.js
traversal.js.map

مشاهدة ملف: traversal.d.ts

import { AnyNode, ChildNode, Element, ParentNode } from "domhandler";
/**
 * Get a node's children.
 *
 * @category Traversal
 * @param elem Node to get the children of.
 * @returns `elem`'s children, or an empty array.
 */
export declare function getChildren(elem: AnyNode): ChildNode[];
export declare function getParent(elem: AnyNode): ParentNode | null;
/**
 * Gets an elements siblings, including the element itself.
 *
 * Attempts to get the children through the element's parent first. If we don't
 * have a parent (the element is a root node), we walk the element's `prev` &
 * `next` to get all remaining nodes.
 *
 * @category Traversal
 * @param elem Element to get the siblings of.
 * @returns `elem`'s siblings, including `elem`.
 */
export declare function getSiblings(elem: AnyNode): AnyNode[];
/**
 * Gets an attribute from an element.
 *
 * @category Traversal
 * @param elem Element to check.
 * @param name Attribute name to retrieve.
 * @returns The element's attribute value, or `undefined`.
 */
export declare function getAttributeValue(elem: Element, name: string): string | undefined;
/**
 * Checks whether an element has an attribute.
 *
 * @category Traversal
 * @param elem Element to check.
 * @param name Attribute name to look for.
 * @returns Returns whether `elem` has the attribute `name`.
 */
export declare function hasAttrib(elem: Element, name: string): boolean;
/**
 * Get the tag name of an element.
 *
 * @category Traversal
 * @param elem The element to get the name for.
 * @returns The tag name of `elem`.
 */
export declare function getName(elem: Element): string;
/**
 * Returns the next element sibling of a node.
 *
 * @category Traversal
 * @param elem The element to get the next sibling of.
 * @returns `elem`'s next sibling that is a tag, or `null` if there is no next
 * sibling.
 */
export declare function nextElementSibling(elem: AnyNode): Element | null;
/**
 * Returns the previous element sibling of a node.
 *
 * @category Traversal
 * @param elem The element to get the previous sibling of.
 * @returns `elem`'s previous sibling that is a tag, or `null` if there is no
 * previous sibling.
 */
export declare function prevElementSibling(elem: AnyNode): Element | null;
//# sourceMappingURL=traversal.d.ts.map