Permalink
Browse files

Merge branch 'noxhtml-768399'

  • Loading branch information...
2 parents 10dbbcc + fbb5475 commit a2936b05dfeda42b340cf0511376f2c6b8aa4f61 @joewalker committed Oct 13, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/gcli/util.js
View
@@ -350,7 +350,10 @@ exports.setContents = function(elem, contents) {
return;
}
- if (exports.isXmlDocument(elem.ownerDocument)) {
+ if ('innerHTML' in elem) {
+ elem.innerHTML = contents;
+ }
+ else {
try {
var ns = elem.ownerDocument.documentElement.namespaceURI;
if (!ns) {
@@ -370,9 +373,6 @@ exports.setContents = function(elem, contents) {
throw ex;
}
}
- else {
- elem.innerHTML = contents;
- }
};
/**

0 comments on commit a2936b0

Please sign in to comment.