I've not had a need to try before, so this is a genuine question. But can you not already use Sizzle (The filter engine that jQuery uses) as a stand-alone library without jQuery? I had a look through the Sizzle source code and the only references to jQuery are in tests, documentation, and benchmarks.
If that's the case, what sets Dizzle apart from Sizzle?
A self-taught person than a main stream academic, I started development with core PHP for development of websites and applications very early in life.
I ❤️ Open Source!
Yes Sizzle can be used as standalone library without using jQuery as a dependency
but the main reason I created dizzle was because
Sizzle has lots of workarounds for legacy browsers which are not required for any modern browsers.
Based on the jQuery team's response ( github.com/jquery/sizzle/issues/473 ) they are already in the process to merge Sizzle into jQuery core and the Sizzle project will be dead. !!
On the other hand, Dizzle does not have any legacy browsers support as sizzle has
instead it uses querySelectorAll to query most elements. it basically tries query using browser API. if that fails then it prases the selector string
and loops into and query's the element
I've not had a need to try before, so this is a genuine question. But can you not already use Sizzle (The filter engine that jQuery uses) as a stand-alone library without jQuery? I had a look through the Sizzle source code and the only references to jQuery are in tests, documentation, and benchmarks.
If that's the case, what sets Dizzle apart from Sizzle?
Yes Sizzle can be used as standalone library without using jQuery as a dependency
but the main reason I created dizzle was because
On the other hand, Dizzle does not have any legacy browsers support as sizzle has
instead it uses
querySelectorAll
to query most elements. it basically tries query using browser API. if that fails then it prases the selector stringand loops into and query's the element
ah interesting. Thanks