Opened 11 years ago

Closed 7 years ago

#13920 closed defect (patchwelcome)

removeAttr() sometimes silently fails in webkit

Reported by: Marcel Lucas Owned by: Eugene Lazutkin
Priority: high Milestone: 1.13
Component: HTML Version: 1.7.0b1
Keywords: removeAttr removeAttribute webkit chrome safari Cc:
Blocked By: Blocking:


Trying to remove a DOMElement's "style" attribute with dojo.removeAttr() in a dojo.Animation.onEnd function fails silently in Chrome 13.0 and Safari 5.05.

This is probably only a problem of webkit
but the framework should provide a workaround for this.

As stated in the jquery ticket - a simple workaround is to first empty the node's attribute and trying to remove it afterwards.

Here are two JSFiddles to punch around:
The Problem:
The Workaround:

Change History (3)

comment:1 Changed 10 years ago by Eugene Lazutkin

I am not sure if it is even legal to remove W3C mandate DOM attributes. I believe it should work only for custom attributes. I'll go over the relevant doc before making my decision.

comment:2 Changed 10 years ago by Colin Snover

Milestone: 1.82.0

1.8 has been tagged; moving all outstanding tickets to next major release milestone.

comment:3 Changed 7 years ago by dylan

Milestone: 2.01.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 4+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.