> From: Truppe Steven
> 
> my view of the things is a big different. I think jquery 
> should stay as small as possible so adding functions for 
> basic dom attributes is a bit overhead i think ..

I agree. How do you decide which of the many DOM attributes to turn into
jQuery methods? All of them? Especially if they have different names than
the DOM attributes. That is just confusing, unless the idea is that someone
should be able to program only in jQuery and never have to touch the actual
DOM.

If you compare these:

$(foo).tag()

$(foo)[0].tagName

The first looks shorter, but if we make it fair and use the same name:

$(foo).tagName()

$(foo)[0].tagName

Then it's not much of a win.

Hmm... Using the same name makes it confusing. Do I use parens after tagName
or not? But using two different names makes it confusing too. Do I spell it
tag or tagName? Is tag the same as tagName, just a passthrough, or does it
do some actual processing ala .html()?

I just don't see the value here. (No offense to anyone who likes it!)

-Mike


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to