Mark Gibson schrieb:
> While we're on the API:
> I really don't like the method name .css(), as its actual
> operation is to change a style property, and doesn't really
> have much directly to do with Cascading Style Sheets.
> Could it not be .style() instead?

Hi Mark,

I don't agree. Styles defined in the style attribute belong to the 
cascade as any other style sheet, be it in a style block or external, so 
it has pretty much to do with cascading style sheets.

Nonetheless do I like .style(), that would be more consistent with the 
other attribute getters/setters like .id(), .href() and so on. But there 
lies the problem: .css() also serves as getter for a computed style, so 
renaming would create new problems.


-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to