es-html-parser
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -46,3 +46,4 @@ "use strict"; | ||
(0, utils_1.updateNodeEnd)(state.currentNode, token); | ||
if (SELF_CLOSING_TAGS.indexOf(tagName) !== -1) { | ||
if (SELF_CLOSING_TAGS.indexOf(tagName) !== -1 || | ||
state.currentNode.openEnd.value === "/>") { | ||
state.currentNode.selfClosing = true; | ||
@@ -49,0 +50,0 @@ state.currentNode = state.currentNode.parentRef; |
@@ -76,9 +76,9 @@ import { NodeTypes } from "../constants"; | ||
type: NodeTypes.DoctypeAttribute; | ||
startWrapper?: DoctypeAttributeWrapperStart; | ||
startWrapper?: DoctypeAttributeWrapperStartNode; | ||
value?: DoctypeAttributeValueNode; | ||
endWrapper?: DoctypeAttributeWrapperEnd; | ||
endWrapper?: DoctypeAttributeWrapperEndNode; | ||
} | ||
export declare type DoctypeAttributeValueNode = SimpleNode<NodeTypes.DoctypeAttributeValue>; | ||
export declare type DoctypeAttributeWrapperStart = SimpleNode<NodeTypes.DoctypeAttributeWrapperStart>; | ||
export declare type DoctypeAttributeWrapperEnd = SimpleNode<NodeTypes.DoctypeAttributeWrapperEnd>; | ||
export declare type AnyNode = DocumentNode | TextNode | TagNode | OpenTagStartNode | OpenTagEndNode | CloseTagNode | AttributeNode | AttributeKeyNode | AttributeValueNode | AttributeValueWrapperStartNode | AttributeValueWrapperEndNode | ScriptTagNode | OpenScriptTagStartNode | CloseScriptTagNode | OpenScriptTagEndNode | ScriptTagContentNode | StyleTagNode | OpenStyleTagStartNode | OpenStyleTagEndNode | StyleTagContentNode | CloseStyleTagNode | CommentNode | CommentOpenNode | CommentCloseNode | CommentContentNode | DoctypeNode | DoctypeOpenNode | DoctypeCloseNode | DoctypeAttributeNode | DoctypeAttributeValueNode | DoctypeAttributeWrapperStart | DoctypeAttributeWrapperEnd; | ||
export declare type DoctypeAttributeWrapperStartNode = SimpleNode<NodeTypes.DoctypeAttributeWrapperStart>; | ||
export declare type DoctypeAttributeWrapperEndNode = SimpleNode<NodeTypes.DoctypeAttributeWrapperEnd>; | ||
export declare type AnyNode = DocumentNode | TextNode | TagNode | OpenTagStartNode | OpenTagEndNode | CloseTagNode | AttributeNode | AttributeKeyNode | AttributeValueNode | AttributeValueWrapperStartNode | AttributeValueWrapperEndNode | ScriptTagNode | OpenScriptTagStartNode | CloseScriptTagNode | OpenScriptTagEndNode | ScriptTagContentNode | StyleTagNode | OpenStyleTagStartNode | OpenStyleTagEndNode | StyleTagContentNode | CloseStyleTagNode | CommentNode | CommentOpenNode | CommentCloseNode | CommentContentNode | DoctypeNode | DoctypeOpenNode | DoctypeCloseNode | DoctypeAttributeNode | DoctypeAttributeValueNode | DoctypeAttributeWrapperStartNode | DoctypeAttributeWrapperEndNode; |
{ | ||
"name": "es-html-parser", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -119,4 +119,4 @@ # ES HTML Parser | ||
| DoctypeAttributeValueNode | ||
| DoctypeAttributeWrapperStart | ||
| DoctypeAttributeWrapperEnd; | ||
| DoctypeAttributeWrapperStartNode | ||
| DoctypeAttributeWrapperEndNode; | ||
``` | ||
@@ -123,0 +123,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125529
2662