diff options
Diffstat (limited to 'lib/html/simplify.js')
| -rw-r--r-- | lib/html/simplify.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/html/simplify.js b/lib/html/simplify.js index 52a1b0a..291e5d4 100644 --- a/lib/html/simplify.js +++ b/lib/html/simplify.js @@ -29,7 +29,7 @@ function simplifyNodes(nodes) { nodes.map(simplify).forEach(function(child) { var lastChild = children[children.length - 1]; - if (child.type === "element" && !child.tag.fresh && lastChild && _.isEqual(lastChild.tag, child.tag)) { + if (child.type === "element" && !child.tag.fresh && lastChild && child.tag.matchesElement(lastChild.tag)) { child.children.forEach(function(grandChild) { // Mutation is fine since simplifying elements create a copy of the children. lastChild.children.push(grandChild); |
