- From: Tab Atkins Jr. <notifications@github.com>
- Date: Wed, 09 Aug 2017 18:04:38 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 9 August 2017 18:05:02 UTC
Ugh, sorry for not responding. So, there's definitely nothing capable of representing pseudo-elements in JS, so nothing to return if the selector is `::before` or something. But `::slotted()`, like `::part()`, is a pseudo-element in syntax, but doesn't point to a pseudo-element in the DOM; there's a real element there that's being pointed to, it's just not visible using the standard tree-walking combinators. I believe these should work, and return the element they point to. (In other words, I think YES is the correct answer for 1.) On the spec-language front, dbaron recently rewrote the "match a selector against a tree" algorithm, and I need to do a more detailed review of it now. I can make sure it handles this case. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/463#issuecomment-321335180
Received on Wednesday, 9 August 2017 18:05:02 UTC