Dom icon indicating copy to clipboard operation
Dom copied to clipboard

Facade: querySelector on detached node

Open g105b opened this issue 5 years ago • 1 comments

In the upcoming facade release, when querySelector[All] functions are called on an element that isn't attached to a document, they may not return any matching elements.

If this is the case, it's a bug. To fix it, at the point the querySelector is being executed:

  • If deteched...
  • Create temporary document node.
  • Append to temp node.
  • Perform query selector.
  • Detach from temporary node.
  • Delete temporary node.

g105b avatar Apr 08 '21 12:04 g105b

No more facade!

g105b avatar Sep 08 '22 15:09 g105b