Update missing ASTNode.tagName in parse5 (#12424)

This commit is contained in:
Fred K. Schott
2016-11-02 07:21:02 -07:00
committed by Masahiro Wakame
parent 59a23e55da
commit 68f01f1244
2 changed files with 2 additions and 0 deletions

1
parse5/index.d.ts vendored
View File

@@ -59,6 +59,7 @@ export interface ASTNode {
namespaceURI?: string;
parentNode?: ASTNode;
nodeName: string;
tagName?: string;
quirksMode?: boolean;
value?: string;
__location: LocationInfo | ElementLocationInfo;

View File

@@ -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];