question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOM.select() does not properly select an element when it is the root of an isolated vTree.

See original GitHub issue

From @TylorS on February 2, 2016 22:49

When a plain element e.g. <button /> is used as the root of an isolated vTree DOM.select(‘button’) is unable to properly select the element and listen for it’s events.

An example from @juliomarcos (thank you!) https://jsbin.com/dadilavoca/edit?js,output

Adding a classname to the button element and using DOM.select(‘.classname’) instead works as expected.

This does not seem to affect DOM.select(‘button’).observable

@laszlokorte mentioned having issues with DOM.select(‘*’) as well which may or may not be related.

Copied from original issue: cyclejs/cycle-dom#96

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
TylorScommented, May 3, 2016

This is a solved issue in Cycle DOM v10

0reactions
staltzcommented, May 3, 2016

Yeah, let’s close it so it doesn’t get our attention again

Read more comments on GitHub >

github_iconTop Results From Across the Web

5. Working with the Shadow DOM - Modern JavaScript [Book]
These shadow DOM subtrees can be associated with an element, but do not ... First a shadow host node is selected, and then...
Read more >
select element that is created by insertAdjacentHTML for ...
First off, do not use inline event handlers (see Why are inline event handler attributes a bad idea in modern semantic HTML?).
Read more >
Specificity - CSS: Cascading Style Sheets - MDN Web Docs
Specificity is the algorithm used by browsers to determine the CSS declaration that is the most relevant to an element, which in turn, ......
Read more >
Shadow DOM v1 - Self-Contained Web Components
querySelector() won't return nodes in the component's shadow DOM). ... The spec defines a list of elements that can't host a shadow tree....
Read more >
TestCafe Tutorial: How To Select Page Elements Using ...
In this TestCafe tutorial you will learn how to use TestCafe Selectors for selecting elements on the web page.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found