Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Provide event names in Enum #1

Open
Rapster opened this issue Oct 20, 2018 · 2 comments
Open

Provide event names in Enum #1

Rapster opened this issue Oct 20, 2018 · 2 comments

Comments

@Rapster
Copy link

Rapster commented Oct 20, 2018

Is it possible to provide all the HTML5 event names as constants? (e.g contained in enum class)

See https://www.w3schools.com/tags/ref_eventattributes.asp

@lcduarte
Copy link
Member

Don't know if it helps but the newer (and better), version of this project (https://github.com/xmlet/HtmlApiFaster) provides an interface, GlobalEventAttributes, which contains default methods for every event attribute supported in the HTML5.2 specification.

If you are looking to use this solution to write well formed HTML you should also check https://github.com/xmlet/HtmlFlow. The HtmlFlow project uses the HtmlApiFaster API to write well formed, define HTML templates, etc.

If nothing of the above helps, I'll consider adding an enum on the next release.

@Rapster
Copy link
Author

Rapster commented Oct 20, 2018

Thank you for your quick answer, unfortunately, I was thinking to use your librairies on top of a project I'm contributing. Using HTML5 fluent builder (which is awesome by the way), I'd also need constants event names (it'd be great if it could be defined just like https://www.w3schools.com/tags/ref_eventattributes.asp, e.g in separate enums/classes)

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

No branches or pull requests

2 participants