Skip to content

Commit 3e66980

Browse files
committed
rm noSetHTML
1 parent 8142301 commit 3e66980

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

src/browser/no-set-html.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/view/warn-set-html.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* @file 获取节点 stump 的 comment
88
*/
99

10-
var noSetHTML = require('../browser/no-set-html');
1110
var warn = require('../util/warn');
1211

1312
// #[begin] error
@@ -25,7 +24,8 @@ function warnSetHTML(el) {
2524

2625
// some html elements cannot set innerHTML in old ie
2726
// see: https://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx
28-
if (noSetHTML(el)) {
27+
28+
if (/^(col|colgroup|frameset|style|table|tbody|tfoot|thead|tr|select)$/i.test(el.tagName)) {
2929
warn('set html for element "' + el.tagName + '" may cause an error in old IE');
3030
}
3131
}

0 commit comments

Comments
 (0)