Skip to content
Browse files

修改no-scope元素的匹配正则

  • Loading branch information...
1 parent 48103f7 commit bfea35a86b72209b45f1f1b705eba47e2a3cee93 @RubyLouvre committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 node.js
View
4 node.js
@@ -6,12 +6,12 @@ define("node", ["support", "class", "query", "data"].concat(top.dispatchEvent ?
rtagName = /<([\w:]+)/,
//取得其tagName
rxhtml = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
- rcreate = $.support.createAll ? /<(?:script)/ig : /(<(?:script|link|style))/ig,
+ rcreate = $.support.noscope ? /(<(?:script|link|style|meta|noscript))/ig : /[^\d\D]/,
types = $.oneObject("text/javascript", "text/ecmascript", "application/ecmascript", "application/javascript", "text/vbscript"),
//需要处理套嵌关系的标签
rnest = /<(?:tb|td|tf|th|tr|col|opt|leg|cap|area)/,
adjacent = "insertAdjacentHTML",
- TAGS = "getElementsByTagName"
+ TAGS = "getElementsByTagName";
function getDoc() { //获取文档对象
for(var i = 0, el; i < arguments.length; i++) {

0 comments on commit bfea35a

Please sign in to comment.
Something went wrong with that request. Please try again.