Opened 13 years ago

Closed 12 years ago

#2252 closed defect (wontfix)

dojo.html.copyStyle throws an exception

Reported by: ewilde@… Owned by: Bryan Forbes
Priority: high Milestone:
Component: HTML Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Adam Peller)

i recommand to add the following as the first line of the function in order to avoid an exception while looping through an arbitrary DOM tree :

if(!target.style || !source.style){return;}

Regards, ewilde.

Change History (3)

comment:1 Changed 13 years ago by ewilde@…

there should be an OR operator between "!target.style" and "!source.style". it has been eliminated (maybe) by the trac server...

comment:2 Changed 13 years ago by Adam Peller

Description: modified (diff)

comment:3 Changed 12 years ago by Adam Peller

Resolution: wontfix
Status: newclosed

this code no longer exists in 0.9

Note: See TracTickets for help on using tickets.