mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
Avoid widget include check if not nested within a custom tag or an HTML tag
This commit is contained in:
parent
54b3fec8d0
commit
e26ae0cd5b
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user