3.7.06

More properties and attributes fun

Back to the wonderful world of cross-browser surrealism. A few posts ago, I was describing how the properties of a node are automatically declared as attributes for the tag and viceversa in IE (tsk, tsk). So I wrote a function that takes an object and transfers its properties into a node element's properties and attributes --explicitly for FF.

AH! the catch! If you redeclare an event listener attribute as a function, it won't work. It makes sense: onclick="function(){ doStuff()}" doesn't work. What do you do? not declare the event listeners as attributes.

Quirky bastards.

No comments: