Hi,
I am using moo1.2.4 (core and more):
In FF3.5 it works great.
But in IE8, it gives Unknown Run time error - pointing to the
Element.Properties.html in moo1.2.4 source code.
In the old postings, and to my experience, it is set('html'," ")....
which is creating this problem..and as per the code, already its
patched with a wrapper of 'div'.
Still I am getting this problem..
Could some one let me know how to get around this problem.
Okay my source code and testing is :
http://www.parisodhana.com/sgmpv92
login as guest, password : guest123
and use the Edit button pl. of Abstract section and below.
Thank you in anticipation.
IE8 it fails, FF it works great.
************************************************************************
Element.Properties.html = (function(){
var wrapper = document.createElement('div');
var translations = {
table: [1, '<table>', '</table>'],
select: [1, '<select>', '</select>'],
tbody: [2, '<table><tbody>', '</tbody></table>'],
tr: [3, '<table><tbody><tr>', '</tr></tbody></table>']
};
translations.thead = translations.tfoot = translations.tbody;
var html = {
set: function(){
var html = Array.flatten(arguments).join('');
var wrap = Browser.Engine.trident && translations[this.get('tag')];
alert('moo src '+this.get('tag'));
if (wrap){
var first = wrapper;
first.innerHTML = wrap[1] + html + wrap[2];
for (var i = wrap[0]; i--;) first = first.firstChild;
this.empty().adopt(first.childNodes);
} else {
this.innerHTML = html; // this is the error
}
}
};
html.erase = html.set;
return html;
})();