Gildas hace 7 años
padre
commit
c0a1942f78
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      lib/single-file/serializer.js

+ 2 - 2
lib/single-file/serializer.js

@@ -29,8 +29,8 @@ this.serializer = this.serializer || (() => {
 	const OMITTED_START_TAGS = [
 		{ tagName: "head", accept: element => !element.childNodes.length || element.childNodes[0].nodeType == Node.ELEMENT_NODE },
 		{ tagName: "body", accept: element => !element.childNodes.length },
-		{ tagName: "tbody", accept: element => !element.childNodes[0] && element.childNodes[0].tagName == "TR" },
-		{ tagName: "colgroup", accept: element => !element.childNodes[0] && element.childNodes[0].tagName == "COL" },
+		{ tagName: "tbody", accept: element => element.childNodes[0] && element.childNodes[0].tagName == "TR" },
+		{ tagName: "colgroup", accept: element => element.childNodes[0] && element.childNodes[0].tagName == "TR" },
 	];
 	const OMITTED_END_TAGS = [
 		{ tagName: "html", accept: next => !next || next.nodeType != Node.COMMENT_NODE },