el.getAttribute("style")
Reported by Steven Parkes | May 31st, 2010 @ 02:56 PM
It doesn't look like we handle style-as-attribute correctly. Setting a style like ele.style.display = "none" seems to work right, but then shouldn't elem.getAttribute("style") return "display:none"?
Doesn't seem to in master.
Or am I missing something?
Comments and changes to this ticket
-
Ricardo Valeriano August 27th, 2010 @ 05:47 AM
- Milestone order changed from 0 to 0
I have a problem using jQuery and Rhino + Env.
$(function($) { var editable = $("div.editable"); var input = editable.find("input[type='text']"); console.log(input.css("display")) input.show() console.log(input.css("display")) input.hide() console.log(input.css("display")) });
returns:
[ Envjs/1.6 (Rhino; U; Mac OS X x86_64 10.6.4; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13 ] none
undefined noneI think it might be related with this issue.
-
Ricardo Valeriano August 27th, 2010 @ 05:49 AM
Sorry about last comment, again with formated code:
$(function($) { var editable = $("div.editable"); var input = editable.find("input[type='text']"); console.log(input.css("display")) input.show() console.log(input.css("display")) input.hide() console.log(input.css("display")) });
result:
[ Envjs/1.6 (Rhino; U; Mac OS X x86_64 10.6.4; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13 ] none
undefined none
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
a javascript browser environment