linkedin / dustjs

Asynchronous Javascript templating for the browser and server
http://dustjs.com
MIT License
2.91k stars 478 forks source link

The examples on dustjs.com do not work #780

Open brianmhunt opened 6 years ago

brianmhunt commented 6 years ago

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)
jbaicoianu commented 6 years ago

I also see this problem in Chrome. It works in Firefox.

LoveraSantiago commented 6 years ago

On Internet Explorer Its possible to see text on black textArea, on chrome Its not possible see anything. Lost several minutes trying typing things to see how it works and bahn!!!!

nricardo commented 6 years ago

Also confirmed to work in Firefox. Chrome 👎

CExCDavies commented 6 years ago

In Chrome 45, the ability to have multiple shadow roots was deprecated. (see https://developer.mozilla.org/en-US/docs/Web/API/Element/createShadowRoot#Browser_compatibility)

ggiak commented 6 years ago

+1 for this issue on chrome.

treyhuffine commented 6 years ago

+2 for this issue on chrome.

jbaicoianu commented 6 years ago

I spoke with someone who works at LinkedIn, unfortunately he said that internally they consider dustjs to be deprecated, and likely don't have anyone assigned to it. Shame, I've been using dustjs for 6 years and it's worked great since then, still does, but seems like another victim of the framework popularity contest :(

brianmhunt commented 6 years ago

@jbaicoianu Thanks for sharing that; this information will undoubted help others who happen across this.

gilsondelrei commented 6 years ago

Thanks by important information, maybe i will consider markojs how my Future template mechanism.

Em seg, 16 de abr de 2018 12:32, Brian M Hunt notifications@github.com escreveu:

@jbaicoianu https://github.com/jbaicoianu Thanks for sharing that; this information will undoubted help others who happen across this.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/linkedin/dustjs/issues/780#issuecomment-381646956, or mute the thread https://github.com/notifications/unsubscribe-auth/AHRYqgj77M8o4R6Mu68ZZhDo1MPn53b8ks5tpLmBgaJpZM4SCLuu .

danwdart commented 6 years ago

For those still on this - whilst it still needs a maintainer, it also still needs this issue and possibly others fixing.

kenjim83 commented 6 years ago

👍 Still seeing this on Chrome.

daniel0128 commented 6 years ago

+1 on chrome

riteshpanchal commented 5 years ago

Still seeing the issue on Chrome.