This project is archived and is in readonly mode.

#531 ✓invalid

core 1.2.1 getStyle works / getStyles not

Reported by achim.vedam | December 22nd, 2008 @ 11:44 AM | in 2.0 (closed)


Returns me a value.


not. Same with border-left. Seems it has something to do with the '-' of the property.



Comments and changes to this ticket

  • Daniele C.

    Daniele C. December 22nd, 2008 @ 04:12 PM

    I have failed to reproduce your error, I've tested it and it works with no problem. In which way is the padding setted in your element, using HTML attribute style="", or in CSS? And, what kind of element is your "el" (tag name)?

  • achim.vedam

    achim.vedam December 22nd, 2008 @ 08:55 PM

    • Assigned user cleared.

    Oh, I'm really sorry for that. Checking and testing for hours to realize I made a stupid js-error. Your right. Setting and Getting works correct.

    var styles = element.getStyles('padding-left', 'width', 'border-style');
    // so, asking for the width-property this way I received a value: 
    // and, you'll guess it, for accessing padding-left the same way an error:
    // and for sure - at least I realized:

    And Yes. It had something to do with the '-'. ;-) Designers should do designing - not coding.

  • Jan Kassens

    Jan Kassens December 22nd, 2008 @ 09:14 PM

    • State changed from “new” to “invalid”

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