Bug 11698 - assigning "" to CSS properties has no effect
Summary: assigning "" to CSS properties has no effect
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-27 08:29 PST by Fabian Jakobs
Modified: 2007-05-20 04:39 PDT (History)
1 user (show)

See Also:


Attachments
Test case (2.20 KB, text/html)
2006-11-27 08:30 PST, Fabian Jakobs
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Jakobs 2006-11-27 08:29:39 PST
Assigning "" to CSS properties sets the property to the default value in other browsers (IE and Firefox). WebKit just ignores such assignments.

Example

element.style.border = ""  // no effect in WebKit, resets border in FF and IE
element.style.border = "0px none" // works OK
Comment 1 Fabian Jakobs 2006-11-27 08:30:39 PST
Created attachment 11641 [details]
Test case

test case added.
Comment 2 Matt Lilek 2006-11-27 09:04:44 PST
Works in Opera too.
Comment 3 Rob Buis 2007-05-17 01:09:24 PDT
The testcase seems to work in ToT.
Cheers,

Rob.
Comment 4 Alexey Proskuryakov 2007-05-17 10:11:18 PDT
Yes, this was fixed a while ago.
Comment 5 Rob Buis 2007-05-20 04:39:44 PDT
Marking as fixed after ap's comment.
Cheers,

rob.