Skip to content

Commit

Permalink
update 1.3.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyLouvre committed Nov 19, 2014
1 parent 8d20c47 commit 2e96a64
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://weibo.com/jslouvre/
Released under the MIT license
avalon 1.3.7 2014.11.17 support IE6+ and other browsers
avalon 1.3.7.2 2014.11.19 support IE6+ and other browsers
==================================================*/
(function(DOC) {
/*********************************************************************
Expand Down
2 changes: 1 addition & 1 deletion avalon.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://weibo.com/jslouvre/
Released under the MIT license
avalon 1.3.7 2014.11.17 support IE10 and other latest browsers
avalon 1.3.7.2 2014.11.19 support IE10 and other latest browsers
==================================================*/
(function(DOC) {
var expose = Date.now()
Expand Down
16 changes: 7 additions & 9 deletions avalon.observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,6 @@
var rxhtml = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig

var tagHooks = {
col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
g: [1, '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">', '</svg>'],
//IE6-8在用innerHTML生成节点时,不能直接创建no-scope元素与HTML5的新标签
_default: [0, "", ""] //div可以不用闭合
Expand All @@ -978,14 +977,13 @@
t.innerHTML = wrap[1] + html + wrap[2]
var wrapper = t.content
if (wrap[0]) {
console.log(wrapper)
// var fragment = wrapper.cloneNode(false), firstChild
// for (var i = wrap[0]; i--; wrapper = wrapper.lastChild) {
// }
// while (firstChild = wrapper.firstChild) { // 将wrapper上的节点转移到文档碎片上!
// fragment.appendChild(firstChild)
// }
// return fragment
var fragment = wrapper.cloneNode(false), firstChild
for (var i = wrap[0]; i--; wrapper = wrapper.lastChild) {
}
while (firstChild = wrapper.firstChild) { // 将wrapper上的节点转移到文档碎片上!
fragment.appendChild(firstChild)
}
return fragment
}
return wrapper
}
Expand Down

0 comments on commit 2e96a64

Please sign in to comment.