We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8142301 commit 3e66980Copy full SHA for 3e66980
src/browser/no-set-html.js
src/view/warn-set-html.js
@@ -7,7 +7,6 @@
7
* @file 获取节点 stump 的 comment
8
*/
9
10
-var noSetHTML = require('../browser/no-set-html');
11
var warn = require('../util/warn');
12
13
// #[begin] error
@@ -25,7 +24,8 @@ function warnSetHTML(el) {
25
24
26
// some html elements cannot set innerHTML in old ie
27
// see: https://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx
28
- if (noSetHTML(el)) {
+
+ if (/^(col|colgroup|frameset|style|table|tbody|tfoot|thead|tr|select)$/i.test(el.tagName)) {
29
warn('set html for element "' + el.tagName + '" may cause an error in old IE');
30
}
31
0 commit comments