PDA

View Full Version : 0.33 beta 3 DomHelper fails to insert html with IE



moedusa
7 Nov 2006, 7:01 AM
Just got an error under IE6 (yui-ext-debug.js):



// build as innerHTML where available
/** @ignore */
function createHtml(o){
var b = '';
b += '<' + o.tag; <<<<<< ln. 842 (tag is null or not an object)


FF works as expected.

jack.slocum
7 Nov 2006, 2:47 PM
Can you post some code. It is saying that you didn't pass in a config object it looks like.

moedusa
8 Nov 2006, 12:05 AM
Jack, I am sorry my fault:



var sel = dh.append(p2, {tag: 'select', id: this.getId()+'_ttb_lnk_target', cls: 'ttb_lnk_target', children: [
{tag: 'option', value: 'none', html:''},
{tag: 'option', value: '_blank', html:'new window'},
{tag: 'option', value: '_self', html:'same window'}, //<< comma
]});


not a bug.

jack.slocum
8 Nov 2006, 4:58 AM
Ah, the infamous comma!