Closed Bug 870643 Opened 11 years ago Closed 11 years ago

javascript can not change the margin

Categories

(Firefox :: Untriaged, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: MarcusAY, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31

Steps to reproduce:

Bug found. Version: 20.0.1
I can not use javascript to change the margin with fire fox.

In other browsers this line of javascript works...
document.getElementById("container1").style.margin='0px 0px 10px 0px;';


Actual results:

Bug found. Version: 20.0.1
I can not use javascript to change the margin with fire fox.

In other browsers this line of javascript works...
document.getElementById("container1").style.margin='0px 0px 10px 0px;';


Expected results:

Bug found. Version: 20.0.1
I can not use javascript to change the margin with fire fox.

In other browsers this line of javascript works...
document.getElementById("container1").style.margin='0px 0px 10px 0px;';
not need ';' in css properties
Works for me if I remove the ";", does not work with ";" (Web Console says parsing failed).  Should this bug be resolved INVALID?
(I tested with 21.0 Beta)
(In reply to Alice0775 White from comment #1)
> not need ';' in css properties
Thank you! : )
I corrected the mistake, as Alice0775 said, and now it's working fine.
Thanks for your patience with me : )
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.