Bug Tracker

Opened 6 years ago

Closed 5 years ago

#14281 closed feature (migrated)

Support ShadowRoot Nodes in Sizzle

Reported by: tj.vantoll Owned by: timmywil
Priority: low Milestone: None
Component: selector Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:

Description

Currently ShadowRoot nodes cannot be used with Sizzle: http://jsfiddle.net/tj_vantoll/5RBxm/

ShadowRoots are DocumentFragments, but they have the additional methods so adding support for them might not be that bad: http://www.w3.org/TR/shadow-dom/#elements-and-dom-objects

Change History (4)

comment:1 Changed 6 years ago by timmywil

Component: unfiledselector
Owner: set to timmywil
Priority: undecidedlow
Status: newassigned

I'll take a stab at this whenever I get the chance.

comment:2 Changed 6 years ago by jan@…

This appears to be a dupe of http://bugs.jquery.com/ticket/13342. Comments on that bug suggest that:

  1. Shadow DOM wasn't sufficiently available across the different browsers to rise to the level the jQuery team felt comfortable supporting it.
  2. The exact semantics for what operations should and shouldn't be allowed on a shadow root weren't clearly defined.

FWIW, that bug references a pull request (https://github.com/jquery/jquery/pull/1149) with more commentary.

comment:3 Changed 6 years ago by timmywil

Thank you for the reference. We were actually aware of that bug, but we decided to open a separate issue for Sizzle support.

comment:4 Changed 5 years ago by m_gol

Resolution: migrated
Status: assignedclosed
Note: See TracTickets for help on using tickets.