The examples on dustjs.com do not work
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 461
- PR merge metrics
- No merged PRs in 30d
Description
In the developer console:
Uncaught DOMException: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.
at HTMLElement.shadowFromTemplate (http://www.dustjs.com/bower_components/polymer/polymer.js:10033:25)
at HTMLElement.parseDeclaration (http://www.dustjs.com/bower_components/polymer/polymer.js:10005:25)
at HTMLElement.parseDeclarations (http://www.dustjs.com/bower_components/polymer/polymer.js:9986:28)
at HTMLElement.makeElementReady (http://www.dustjs.com/bower_components/polymer/polymer.js:9886:12)
at HTMLElement.createdCallback (http://www.dustjs.com/bower_components/polymer/polymer.js:9855:14)
at HTMLElement.registerPrototype (http://www.dustjs.com/bower_components/polymer/polymer.js:11299:28)
at HTMLElement.register (http://www.dustjs.com/bower_components/polymer/polymer.js:11127:12)
at HTMLElement._register (http://www.dustjs.com/bower_components/polymer/polymer.js:11635:12)
at Object.flush (http://www.dustjs.com/bower_components/polymer/polymer.js:11471:28)
at Object.ready (http://www.dustjs.com/bower_components/polymer/polymer.js:11486:12)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by opening the examples on dustjs.com and inspect the reported stack in bower_components/polymer/polymer.js, especially shadowFromTemplate. Determine why the examples attempt to create a second shadow tree, then verify that the examples load without the reported DOMException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100