Questions tagged [sizzle]

Sizzle is a JavaScript CSS selector engine.

Sizzle is a pure-JavaScript CSS selector engine. CSS 3 selectors are supported, plus an additional set of custom selectors.

Resources

165 questions
0
votes
4 answers

Is there an OR combinator in jQuery/Sizzle?

Possible Duplicate: jQuery OR Selector? I would like to for each select in the matched set find the first option that either has a class placeholder or an empty value something along the lines…
George Mauer
  • 117,483
  • 131
  • 382
  • 612
0
votes
0 answers

How do I use sizzle like jQuery do for selecting and performing actions to the selected elements?

I am creating a JavaScript library like jQuery. I was using simple querySelector() method to select elements. Eg. $(element).method(). Then I found jQuery uses sizzle. I also wanted to use sizzle . But how can I use sizzle like jQuery do, It don't…
CodeMania
  • 3
  • 6
0
votes
1 answer

Why jQuery needs Sizzle internally?

When I was looking at the jQuery code source, I became interested in Sizzle-js, which is a CSS selector engine library that jQuery uses for selecting DOM elements. So, my question is why jQuery includes an entire library for just selecting DOM…
Shakir El Amrani
  • 331
  • 2
  • 16
0
votes
0 answers

JQuery upgrade causing slowness in dom attribute getting and setting

My application was running fine with JQuery 1.7.2. After I upgraded to 3.4.1 it has become very very slow. When debugged with chrome performance tool observed while getting and setting visibility of dom it has slowed down. Attaching the profiler…
0
votes
3 answers

Getting a css selection expression from an element

I'm looking for the best way to get a selection expression for an element by passing the element , i.e. : i want the reverse of sizzle/slick ... i want to pass an element i've clicked on and get a unique selection expression for it (e.g. : 'table[0]…
Amnon
  • 1,241
  • 3
  • 10
  • 19
0
votes
1 answer

Overriding jQuery function loses 'this' scope

I am trying to implement the following answer from another question: https://stackoverflow.com/a/26469105/2402594 Basically I need to add an extra check to a jQuery function. The following code is in jQuery library: But I can't modify the original…
Victor
  • 907
  • 2
  • 17
  • 42
0
votes
3 answers

Get rightmost input:checked of every tr using a single jQuery(Sizzle) selector

I don't know if this is possible, but it's an interesting situation I came across in my project today. A table of checkboxes. One type of checkboxes are hierarchical, which means that if one is checked, all checkboxes of the same type to the left of…
oriadam
  • 7,747
  • 2
  • 50
  • 48
0
votes
1 answer

Moving from Gulp to the Bundler and Minifier Extension

we're attempting to move away from Gulp and instead using the integrated VS bundler and compiler extension. It generates the output files of site.js and vendor.js fine, but when you reload the page, we get a uncaught error in the vendor.js file,…
0
votes
1 answer

How to compile and set up Sizzle, an open source Sawzall implementation for Hadoop, on Mac OS X?

'Sizzle is an open source implementation of the Sawzall programming language designed for interoperation with the Hadoop MapReduce and DFS stack.' https://github.com/anthonyu/Sizzle
Attila Csordas
  • 75
  • 1
  • 1
  • 5
0
votes
1 answer

Jquery 3.1.0 ( upgraded from 2.2.0) - ID Selector - Syntax error, unrecognized expression: "#"

I have upgraded to latest version of Jquery 3.1.0 from 2.2.0. We also use Kendo UI in our view. First thing i noticed with the upgrade is IDSelector for kendo grid is not working and throwing "Syntax error, unrecognized expression: #" error. var…
Yasir
  • 11
  • 2
0
votes
1 answer

Need Help finding out howto use Twitter's @anywhere isFollowing/isFollowedBy methods

I am trying to check via the Twitter Javascript Api (see here) if a logged in user is following me on twitter. If not, i will display a followbutton. Right now i can't seem to find out how the command isFollowing/isFollowedBy works (see doc). Code…
Tom Siwik
  • 992
  • 9
  • 22
0
votes
3 answers

Sizzle selector syntax pattern of searchable items

I'm still learning how to use Sizzle selector. So far I know this: Sizzle('#blah') - searches the entire document for element(s) with id 'blah'. Sizzle('.blah') - searches the entire document for element(s) with css class 'blah'. Then today I found…
Gary
  • 1,001
  • 8
  • 17
0
votes
1 answer

How do the regular expressions in sizzle.js work?

If escaped characters in a regular expression created in JavaScript with the RegExp object need to be escaped again how does the following code in sizzle.js work - identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+" If \\\\\\\ = \ and \\\w = \w then how…
usr56777
  • 55
  • 4
0
votes
1 answer

What does `Sizzle.tokenize` do

Sizzle.tokenize is undocumented and there is no comments in the source. What does it do? The code
stevemao
  • 1,423
  • 1
  • 16
  • 29
0
votes
1 answer

How does jQuery clone its methods so quickly?

I am trying to return a query like object, in my first try I try the Object.create method var ElementArray = { someMethod : myMethod, .... } var addMethods = function(elements) { var obj = Object.create(ElementArray); obj[0] =…
Burdock
  • 1,085
  • 1
  • 9
  • 22
1 2 3
10
11