prevent IE error #810
This commit is contained in:
parent
04afc9a2c5
commit
28366212b0
1 changed files with 4 additions and 1 deletions
|
|
@ -510,7 +510,10 @@ void (function (global, factory) { // eslint-disable-line
|
|||
editable.innerHTML = data
|
||||
} else {
|
||||
// was a trusted string
|
||||
if (nodes[0].nodeType === 1 || nodes.length > 1) {
|
||||
if (nodes[0].nodeType === 1 ||
|
||||
nodes.length > 1 ||
|
||||
!nodes[0].nodeValue.trim()
|
||||
) {
|
||||
clear(cached.nodes, cached)
|
||||
nodes = [$document.createTextNode(data)]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue