|
@@ -25,7 +25,8 @@ module.exports = function compile (el, options, partial) {
|
|
|
? null
|
|
? null
|
|
|
: compileNode(el, options)
|
|
: compileNode(el, options)
|
|
|
var childLinkFn =
|
|
var childLinkFn =
|
|
|
- (!nodeLinkFn || !nodeLinkFn.terminal) &&
|
|
|
|
|
|
|
+ !(nodeLinkFn && nodeLinkFn.terminal) &&
|
|
|
|
|
+ el.tagName !== 'SCRIPT' &&
|
|
|
el.hasChildNodes()
|
|
el.hasChildNodes()
|
|
|
? compileNodeList(el.childNodes, options)
|
|
? compileNodeList(el.childNodes, options)
|
|
|
: null
|
|
: null
|
|
@@ -266,7 +267,8 @@ function compileNodeList (nodeList, options) {
|
|
|
node = nodeList[i]
|
|
node = nodeList[i]
|
|
|
nodeLinkFn = compileNode(node, options)
|
|
nodeLinkFn = compileNode(node, options)
|
|
|
childLinkFn =
|
|
childLinkFn =
|
|
|
- (!nodeLinkFn || !nodeLinkFn.terminal) &&
|
|
|
|
|
|
|
+ !(nodeLinkFn && nodeLinkFn.terminal) &&
|
|
|
|
|
+ node.tagName !== 'SCRIPT' &&
|
|
|
node.hasChildNodes()
|
|
node.hasChildNodes()
|
|
|
? compileNodeList(node.childNodes, options)
|
|
? compileNodeList(node.childNodes, options)
|
|
|
: null
|
|
: null
|