mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Update missing ASTNode.tagName in parse5 (#12424)
This commit is contained in:
committed by
Masahiro Wakame
parent
59a23e55da
commit
68f01f1244
1
parse5/index.d.ts
vendored
1
parse5/index.d.ts
vendored
@@ -59,6 +59,7 @@ export interface ASTNode {
|
||||
namespaceURI?: string;
|
||||
parentNode?: ASTNode;
|
||||
nodeName: string;
|
||||
tagName?: string;
|
||||
quirksMode?: boolean;
|
||||
value?: string;
|
||||
__location: LocationInfo | ElementLocationInfo;
|
||||
|
||||
@@ -58,6 +58,7 @@ fragment = parse5.parseFragment('<div></div>', {locationInfo: true});
|
||||
fragment.quirksMode = true;
|
||||
fragment.namespaceURI = '';
|
||||
fragment.nodeName = '';
|
||||
fragment.tagName = '';
|
||||
fragment.value = '';
|
||||
fragment.data = '';
|
||||
fragment = fragment.childNodes[0];
|
||||
|
||||
Reference in New Issue
Block a user