Opened 13 years ago

Closed 12 years ago

#829 closed defect (wontfix)

IE error adding after advice to a node's appendChild() function

Reported by: jonathan.aquino@… Owned by: alex
Priority: high Milestone: 0.9
Component: Events Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

I'm trying to add after advice to a node's appendChild() function. It works in Firefox, but IE gives me an error.

Test page: http://jonaquino.textdriven.com/junk/dojo_tests/append_child_connect_ie_error.html

The code:

<div id="foo"></div>
     
<script>
dojo.event.connect(dojo.byId('foo'), 'appendChild', dojo.lang.hitch(this, function() { alert('success'); }));
dojo.byId('foo').appendChild(document.createElement('div'));
</script>

The error in IE:

Object doesn't support this property or method

Change History (2)

comment:1 Changed 13 years ago by dylan

Component: GeneralEvents
Milestone: 0.5
Owner: changed from anonymous to alex

comment:2 Changed 12 years ago by alex

Resolution: wontfix
Status: newclosed

this is an IE bug related to DOM nodes being COM objects and therefore not obeying proper JS hygene. Sadly, marking "wontfix"

Note: See TracTickets for help on using tickets.