Descriptionhttp://code.google.com/p/google-caja/issues/detail?id=714
in browsers, that stringifies undefined and you see 'undefined'.
in caja, domita.js setInnerHTML says
sanitizeHtml(String(htmlFragment || ''))
which turns undefined into '' instead.
this is mostly an issue of developer-friendliness. eg, someone
says
el.innerHTML = foo();
and expects that to show something helpful, even if foo() is
buggy. instead, it shows nothing, and it's unclear whether the
call to foo() happened at all.
Fixed setInnerHtml in DOMita and added tests.
Submitted @3755
Patch Set 1 #Patch Set 2 : Bug 714: el.innerHTML = undefined; #Patch Set 3 : Bug 714: el.innerHTML = undefined; #
Total comments: 1
MessagesTotal messages: 4
|
||||||||||||||||||||||||||||