This project is archived and is in readonly mode.

#1020 ✓invalid

Explorer currentStyle and runtimeStyle properties

Reported by szegheo | September 27th, 2010 @ 12:35 PM

Explorer properties currentStyle and runtimeStyle are both undefined if the element was returned by $$. (With $ it's OK)


Test div

$$('.test').currentStyle returns undefined $$('#test').currentStyle returns undefined $('test').currentStyle returns object

It's the same with core version 1.2 and 1.3

Comments and changes to this ticket

  • Christoph Pojer

    Christoph Pojer September 27th, 2010 @ 04:31 PM

    • State changed from “new” to “invalid”

    $ returns a single element by id document.getElement returns a single element by selector
    $$ and document.getElements return a collection (an array in 1.2, an array-like-object in 1.3)

    In order to access a property on an element inside a collection, use array indices.




Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket