Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

el.getAttribute("style")

#172

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?

Reported by Steven Parkes · May 31st, 2010 @ 02:56 PM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Ricardo Valeriano
    Ricardo Valeriano
    • 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 none

    I think it might be related with this issue.

    August 27th, 2010 @ 05:47 AM

  2. Ricardo Valeriano
    Ricardo Valeriano

    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

    August 27th, 2010 @ 05:49 AM

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.