[ 2 posts ]

Igor Naniyants

  • Username: CTPAX
  • Joined: Mon Mar 12, 2012 8:21 am
  • Posts: 2
  • IRC: CTPAX
  • Offline
  • Profile

Sizzle integration question again

Post Posted: Mon Mar 19, 2012 5:35 am
+0-
I want to raise the issue of integration Sizzle engine into YUI.

There are already a try to integrate it https://github.com/msweeney/yui3/commits/sizzle.
Can you give some clarification on this git branch commits?

Do you consider to integrate it as 4th selection engine in future?

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: Sizzle integration question again

Post Posted: Mon Mar 19, 2012 5:53 am
+1-
We attempted to integrate Sizzle into YUI3, but decided against it for several reasons. Our selector engine is actually smaller in size and faster in many ways than Sizzle.

We were also worried about the issues with Sizzle adding support for "non-standard" selector's that we do not (and will not) support. Our selector engine supports CSS2 & CSS3 selectors, but we don't add "sugar" selectors that are not in the spec. We are under the impression that if you can't use it in a CSS file, then you shouldn't use it to target a not in JS.

We also didn't want users writing code that relies on these "special" selectors, then when a user uses our built-in selector engine, they will fail.
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum