Hi all,

currently Element.setStyle() converts the 'float' css property to
'cssFloat' or 'styleFloat' to account for the different browser
implementations.

As 'float' is a reserved keyword, an error will be thrown on
$(element).setStyle({float: 'none'}) for example.

However, this will work:  $(element).setStyle({'float': 'none'})
(notice the apostrophes around float).

My question is: should this be kept that way, or should we force the
use of 'cssFloat' ?

Note: 'cssFloat' is the standard way to access the CSS float property
via DOM scripting (see
http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSS2Properties-cssFloat)

Regards,

Tobie


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to