possibility to override native selector in sizzle

possibility to override native selector in sizzle

Currently sizzle is always using querySelectorAll or *matchesSelector, if a browser supports this + the used selector and there is no way to override this behavior. My problem with this, is that there are some pseudo selectors, which are buggy in native implementations.

For example the :invalid selector is buggy in safari 5 (chrome 10 works perfect) and are partial in FF4. Currently my workaround is to implement a non-standard pseudo-element -> :invalid-element. But this also means, that chrome 10 can't use the much faster native implementation.

Could we have a way to override the native methods for some selectors?




    • Topic Participants

    • info