On 10/19/07, Viktor Kojouharov <[EMAIL PROTECTED]> wrote: > > > That being said, this is my drop-in replacement: > ...
Viktor, After giving it a second thought, I realize that the general direction of your solution might not be so bad. After all, this is only IE we are talking about -- other browsers wouldn't pick up any hacks. And we're already special casing "name" by rendering it in a string instead using setAttribute - that hack is already so bad (but unfortunately necessary) that expanding it can't make it worse :) document.createElement('<div name="foo" onclick="alert(42)" onion="onion"></div>') will generate the expected result in IE, so for "onion" it really doesn't make any difference if it is special-cased or not. But whatever the outcome of this discussion may be, I strongly encourage you to use Prototype event handling through observe() calls in the end. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---