It's a javascript thing. All CSS names in javascript have to be
camelcase. So it's "border-left" in html, but "borderLeft" in any
javascript DOM code.

Joe Cole wrote:
> Can someone explain why this code from com.google.gwt.dom.client.Style
> is enforcing camelcase:
>
>   private void assertCamelCase(String name) {
>     assert !name.contains("-") : "The style name '" + name
>         + "' should be in camelCase format";
>   }
>
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to