Avoid widget include check if not nested within a custom tag or an HTML tag

This commit is contained in:
Patrick Steele-Idem 2017-01-26 15:36:56 -07:00
parent 54b3fec8d0
commit e26ae0cd5b

View File

@ -11,6 +11,11 @@ module.exports = function(includeNode) {
}
var parentNode = includeNode.parentNode;
if (!parentNode.hasAttribute) {
return;
}
parentNode._normalizeChildTextNodes(context, true /* force trim */);
if (parentNode.childCount === 1) {