DOM.select() does not properly select an element when it is the root of an isolated vTree.
See original GitHub issueFrom @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:
- Created 8 years ago
- Comments:14 (14 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a solved issue in Cycle DOM v10
Yeah, let’s close it so it doesn’t get our attention again