mujahid
15 Jul 2007, 6:45 PM
I am getting an error (An invalid or illegal string was specified" code: 12, line 270, ext-all-debug.js) when rendering a tree node in firefox when using xhtml - (mime type of application/xhtml+xml).
In ExtJS 1.1 RC1, TreeNodeUI.js, I noticed that the img tags are not properly closed in the renderElements function on line 378 and 379;
var buf = ['<li class="x-tree-node"><div class="x-tree-node-el ', a.cls,'">',
'<span class="x-tree-node-indent">',this.indentMarkup,"</span>",
'<img src="', this.emptyIcon, '" class="x-tree-ec-icon">',
'<img src="', a.icon || this.emptyIcon, '" class="x-tree-node-icon',(a.icon ? " x-tree-node-inline-icon" : ""),(a.iconCls ? " "+a.iconCls : ""),'" unselectable="on">',
cb ? ('<input class="x-tree-node-cb" type="checkbox" ' + (a.checked ? 'checked="checked">' : '>')) : '',
'<a hidefocus="on" href="',a.href ? a.href : "#",'" tabIndex="1" ',
a.hrefTarget ? ' target="'+a.hrefTarget+'"' : "", '><span unselectable="on">',n.text,"</span></a></div>",
'<ul class="x-tree-node-ct" style="display:none;"></ul>',
"</li>"];
After properly closing them in my local environment, the tree was rendered properly.
Thanks,
Mujahid
In ExtJS 1.1 RC1, TreeNodeUI.js, I noticed that the img tags are not properly closed in the renderElements function on line 378 and 379;
var buf = ['<li class="x-tree-node"><div class="x-tree-node-el ', a.cls,'">',
'<span class="x-tree-node-indent">',this.indentMarkup,"</span>",
'<img src="', this.emptyIcon, '" class="x-tree-ec-icon">',
'<img src="', a.icon || this.emptyIcon, '" class="x-tree-node-icon',(a.icon ? " x-tree-node-inline-icon" : ""),(a.iconCls ? " "+a.iconCls : ""),'" unselectable="on">',
cb ? ('<input class="x-tree-node-cb" type="checkbox" ' + (a.checked ? 'checked="checked">' : '>')) : '',
'<a hidefocus="on" href="',a.href ? a.href : "#",'" tabIndex="1" ',
a.hrefTarget ? ' target="'+a.hrefTarget+'"' : "", '><span unselectable="on">',n.text,"</span></a></div>",
'<ul class="x-tree-node-ct" style="display:none;"></ul>',
"</li>"];
After properly closing them in my local environment, the tree was rendered properly.
Thanks,
Mujahid