Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@techtonik
Copy link

Just wanted to share this possibility. Browser support is somewhat limited though.

http://caniuse.com/#search=custom%20elements

@ondras
Copy link
Owner

ondras commented Oct 20, 2016

Pretty neat :)

Please note that the registerElement API is deprecated and browsers are implementing the V1 API, window.customElements.define().

This proof of concept for the homepage is merely a showcase of a technology, but in rot.js, we might actually offer a full-blown custom component <rot-display>, a HTML wrapper for ROT.Display. Not sure if worth it though, as this is probably the only part of rot.js that has a meaningfull custom element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants