dom-serializer
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -120,5 +120,6 @@ "use strict"; | ||
switch (node.type) { | ||
case "root": | ||
case ElementType.Root: | ||
return render(node.children, options); | ||
case ElementType.Directive: | ||
case ElementType.Doctype: | ||
return renderDirective(node); | ||
@@ -129,6 +130,8 @@ case ElementType.Comment: | ||
return renderCdata(node); | ||
default: | ||
return ElementType.isTag(node) | ||
? renderTag(node, options) | ||
: renderText(node, options); | ||
case ElementType.Script: | ||
case ElementType.Style: | ||
case ElementType.Tag: | ||
return renderTag(node, options); | ||
case ElementType.Text: | ||
return renderText(node, options); | ||
} | ||
@@ -135,0 +138,0 @@ } |
{ | ||
"name": "dom-serializer", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "render dom nodes to string", | ||
@@ -23,3 +23,3 @@ "author": "Felix Boehm <me@feedic.com>", | ||
"domelementtype": "^2.0.1", | ||
"domhandler": "^3.0.0", | ||
"domhandler": "^4.0.0", | ||
"entities": "^2.0.0" | ||
@@ -37,3 +37,3 @@ }, | ||
"eslint-config-prettier": "^6.0.0", | ||
"htmlparser2": "~4.1.0", | ||
"htmlparser2": "~5.0.0", | ||
"jest": "^26.0.1", | ||
@@ -40,0 +40,0 @@ "prettier": "^2.0.5", |
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
23250
514
+ Addeddomhandler@4.3.1(transitive)
- Removeddomhandler@3.3.0(transitive)
Updateddomhandler@^4.0.0