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
1
vote
1 answer

url fragment issue with angularjs router and jquerys sizzle

I hope this questions hasn't been asked before, but I couldn't find any help anywhere. I am working on an AngularJS app with jQuery included. There seems to be a problem with the fragment of the url when opening the website. Scenario: I open the…
Max
  • 1,526
  • 2
  • 16
  • 19
1
vote
1 answer

Decoupling Sizzle.js from jQuery, and replacing it with Sel.js

I recently came across Sel.js which, among other things, supports the Draft CSS Level 4 Selectors (such as the Subject selector which lets you target the parent of a matched CSS node). I would love to start playing with this library in combination…
Troy Alford
  • 26,660
  • 10
  • 64
  • 82
1
vote
0 answers

Make jQuery re-parse the DOM to expose dynamic content to Sizzle selector engine for legacy IE

I'm in a position where I'm dealing with a large and unwieldy document with a lot of content dynamically generated from various sources other than jQuery. The problem is that some of this content isn't picked up by jQuery's selectors in IE6 & 7. I…
Barney
  • 16,181
  • 5
  • 62
  • 76
1
vote
1 answer

Parsing XML with selectors in IE8-

I am currently parsing through a WMS Capabilities XML file using selectors and this works great, nice clean code solution. However I have stumbled across an issue with IE8- (Chrome, Safari, Firefox etc all working perfectly) $.get(capabilitiesUrl,…
Sphvn
  • 5,247
  • 8
  • 39
  • 57
1
vote
2 answers

Getting next sibling with class in zepto

Normally this would not be a problem, but this time I don't control the dom. Anyway
foo
bar
bar
baz
bar
bar
bar
<-- I want to get this…
Fresheyeball
  • 29,567
  • 20
  • 102
  • 164
1
vote
2 answers

Select all links and forms without jQuery

How can I select all a and form tags without needing to include jQuery? I ultimately am trying to do the following: $("a").click(function { window.onbeforeunload = null; }); $("form").submit(function { window.onbeforeunload = null; }); But…
Shpigford
  • 24,748
  • 58
  • 163
  • 252
1
vote
1 answer

createPseudo performance

I recently had a quick look at the new jQuery Sizzle, i was wondering if there is any significant performance difference between using Sizzle.matchesSelector or assessing directly the attribute of the element parameter :…
nicolas
  • 900
  • 6
  • 16
1
vote
2 answers

How to disable click jquery when got class 'active'

I want to disable clicking when div.button ol.control li has class active. I already use .bind(), but it's not working, please, help me, thanks! this my script http://jsfiddle.net/surya31/HcaBS/
surya
  • 15
  • 1
  • 4
1
vote
1 answer

jQuery 1.5.1 Sizzle 'cannot read property nodename' child '>' selector with knockoutjs

I'm using jQuery 1.5.1 and Knockoutjs 2.0.0. My situation's a little bit complicated, but as I understand it here's what's happening: I have some elements bound to Knockoutjs that also have jQuery.live bindings. Some of these bindings contain the…
Joel
  • 2,217
  • 5
  • 34
  • 45
1
vote
1 answer

Cufon + jQuery messes up on IE

I rather new at this and I am really out of solution here. Right now I am customizing a Opencart theme to suite my needs. this is the website: http://lasarito.ro/lenjerie-de-pat. It works flawless on Chrome and FF, IE however messes up…
1
vote
0 answers

Is there any usage of Sizzle to get unique search results from an html document?

I am newbie in both JS and Sizzle, trying to implement a system that generates links according to a keyword like Google AdSense do. I ve searched and decided to use Sizzle CSS Selector for this. I have an html document and a keyword, I want to…
Sinan Goker
  • 249
  • 1
  • 3
  • 16
0
votes
3 answers

jQuery .prev() of a type regardless of it's parent etc

is there a simple way to get the previous occurrence of an element in the DOM? If I'm looking at #text3 and I want to get ahold of the previous input #text2.

Choose your…

creamcheese
  • 2,524
  • 3
  • 29
  • 55
0
votes
1 answer

querySelectorAll paused on exception in Chrome in jquery

My project is a Ruby on Rails project and it ran fine before, but recently it stopped working in Chrome. It runs fine in Safari and Firefox. When I have the developer tools window open and I refresh the page it pauses several times during load to…
ontsin
  • 1
  • 3
0
votes
2 answers

Iframes Memory Leak with JQuery and Sizzle

We have a situation where there are 3 levels of nested iframes. The 3rd iframe initializes few heavy size objects, but this iframe is discarded and rebuilt in the DOM whenever user navigates across the application. A memory leak is noticed where…
0
votes
2 answers

How to make jQuery's 'filter' function work correctly for SVG nodes?

Say I have the following SVG and jQuery: demo $('#test').filter('text').each(function(){ // do something }); The filter function doesn't work with SVG, probably because jQuery was designed for DOM…
Steve
  • 3,483
  • 5
  • 21
  • 20