Skip to content

Commit

Permalink
rm noSetHTML
Browse files Browse the repository at this point in the history
  • Loading branch information
errorrik committed Sep 29, 2023
1 parent 8142301 commit 3e66980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
23 changes: 0 additions & 23 deletions src/browser/no-set-html.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/view/warn-set-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* @file 获取节点 stump 的 comment
*/

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

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

// some html elements cannot set innerHTML in old ie
// see: https://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx
if (noSetHTML(el)) {

if (/^(col|colgroup|frameset|style|table|tbody|tfoot|thead|tr|select)$/i.test(el.tagName)) {
warn('set html for element "' + el.tagName + '" may cause an error in old IE');
}
}
Expand Down

0 comments on commit 3e66980

Please sign in to comment.