Skip to content

Commit c7cf67a

Browse files
committed
fix: remove duplicate getAttribute definition
1 parent 24ed6c0 commit c7cf67a

File tree

4 files changed

+55
-59
lines changed

4 files changed

+55
-59
lines changed

crates/domparser_napi/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export declare class NodeRepr {
113113
compareDocumentPosition(other: NodeRepr): number
114114
querySelector(selectors: string): NodeRepr | null
115115
querySelectorAll(selectors: string): Array<NodeRepr>
116-
getAttribute(name: string): string | null
117116
hasAttribute(name: string): boolean
118117
getAttributeNS(namespace: string | undefined | null, localName: string): string | null
119118
hasAttributeNS(namespace: string | undefined | null, localName: string): boolean
@@ -153,3 +152,6 @@ export declare class NodeRepr {
153152
get documentPositionImplementationSpecific(): number
154153
cloneNode(deep?: boolean | undefined | null): NodeRepr
155154
}
155+
156+
/** Parse string input to a html tree, return the root node. */
157+
export declare function parse(html: string): NodeRepr

0 commit comments

Comments
 (0)