projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0a400f
)
Roo/DomTemplate.js
author
Alan Knowles
<alan@roojs.com>
Wed, 6 Feb 2013 05:49:30 +0000
(13:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 6 Feb 2013 05:49:30 +0000
(13:49 +0800)
Roo/DomTemplate.js
patch
|
blob
|
history
diff --git
a/Roo/DomTemplate.js
b/Roo/DomTemplate.js
index
aae9860
..
aef8810
100644
(file)
--- a/
Roo/DomTemplate.js
+++ b/
Roo/DomTemplate.js
@@
-99,7
+99,13
@@
Roo.extend(Roo.DomTemplate, Roo.Template, {
var s = this.html;
// covert the html into DOM...
- var doc = document.implementation.createHTMLDocument("");
+ var doc = false;
+ try {
+ doc = document.implementation.createHTMLDocument("");
+ } catch (e) {
+ // old IE...
+ doc = new ActiveXObject("htmlfile");
+ }
//doc.documentElement.innerHTML = htmlBody
var div = doc.documentElement;
div.innerHTML = this.html ;