> I wonder how hard it is to implement? I mean, the parser is already > there for CSS. John, tell us some Mozilla internals ;-)
I know that getElementsByClassName is already in Firefox 3, we'll have to see if something like CSS selectors does, though. The problem is that CSS selectors they don't, necessarily, deal directly with a DOM representation of an HTML document. It may be optimized in a completely different way that allows it to perform better. All of this is good, but extrapolating that engine out and forcing it to work over a DOM document is a different story. I haven't dug deep into the Moz. implementation, but I'm going to assume that the two engines aren't immediately related (which means it'll be harder to implement than you would think). --John _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/