Skip to content

Proof of concept with HTML5 Custom Elements #104

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants