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
10
votes
2 answers

jQuery: subtle difference between .has() and :has()

When used with the child selector >, the two variants of jQuery's "has" behave differently. Take this HTML:
Text
Now: $("div:has(>span)"); would return it, while: $("div").has(">span"); would not. Is it a bug or a…
Tomalak
  • 332,285
  • 67
  • 532
  • 628
9
votes
1 answer

Why uploadcare is repainting html tag every N ms?

While using Uploadcare file upload widget, I noticed that the Uploadcare script keeps repainting the HTML tag. I am not sure if repainting is the right term, but here is what is happening: Checking chrome devtools the HTML tag is highlighting, the…
Jo E.
  • 7,822
  • 14
  • 58
  • 94
7
votes
3 answers

IE Javascript error "Object doesn't support this property or method" within jQuery

For some reason, I am getting the following Javascript error in Internet Explorer 8 on line 3156 of jquery.js (version 1.4.3, non-compressed version): Object doesn't support this property or method. No error occurs in Firefox and Google Chrome. This…
Aistina
  • 12,435
  • 13
  • 69
  • 89
7
votes
2 answers

CSS parser/abstracter? How to convert stylesheet into object

Is there a standard or reliable method already out there for a javascript framework such as jquery to parse a stylesheet into an object? Two reasons for why I'm wondering: I have seen a couple of questions where someone wanted to know how to get…
Anthony
  • 36,459
  • 25
  • 97
  • 163
7
votes
2 answers

JavaScript !function(){}

when looking at the minified Sizzle code, I noticed that it begins like this: !function(a){//... }(window) Why is there an exclamation point at the beginning? I thought that ! was the not operator. Thank you. Edit: Full Code.
Progo
  • 3,452
  • 5
  • 27
  • 44
7
votes
2 answers

Weird issue in IE7 Only not in any other browser

It is a simple HTML , i have jquery-ui(1.10) and jquery (1.9.1) . it works fine in IE8,9 ,firefox and in chrome only in IE 7 HTML has something like below. I have no idea what that is and where that is from this piece of code is not there when i…
Sankara
  • 1,469
  • 15
  • 22
7
votes
3 answers

Can I force jQuery to use Sizzle to evaluate a selector without using non-standard selectors?

In modern browsers, jQuery makes use of document.querySelectorAll() to boost performance when valid CSS selectors are used. It falls back to Sizzle if a browser doesn't support the selector or the document.querySelectorAll() method. However, I'd…
BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
6
votes
2 answers

how to use sizzle.js separate

I downloaded sizzle.js from https://github.com/jquery/sizzle my code is: Demo