On Thursday, October 27, 2011 3:45:19 PM UTC-4, Diego Perini wrote: > > Even forgetting about IE8, using QuerySelector API will still yield > different results in various browsers. > > Consider the following an incomplete list of differences and bugs > (only for Webkit and Firefox): > > - latest versions of Webkit (Safari/Chrome) are still buggy with the > ":nth-xxxxx" pseudos > - Firefox not throwing errors for wrong selectors in its > mozMatchesSelector implementation > - selectors for dynamic properties like "checked" and "disabled" work > differently in Webkit and Firefox > - some browser still uses the "selected" property for options elements > while other use "checked" instead > > they will surely improve things in the future and most of these bugs > are considered edge cases, but libraries should fix that NOW ! > > -- > Diego > I should mention that part of the philosophy of my "Keep it Simple" is that I try to work out the 90% - edge cases are a waste of bytes, especially with browser release schedules. Differences like that I feel are outside of the scope of the library.
The checked and selected thing though... that's not a bad addition to the DOM module. -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
