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

[REQ] Allow html attributes besides CSS properties #32

Open
mhatzl opened this issue Jun 4, 2023 · 2 comments
Open

[REQ] Allow html attributes besides CSS properties #32

mhatzl opened this issue Jun 4, 2023 · 2 comments

Comments

@mhatzl
Copy link
Contributor

mhatzl commented Jun 4, 2023

Unimarkup attributes use CSS syntax, and for now only CSS properties are allowed.
This makes it hard to set HTML attributes.

Therefore, HTML attributes should also be allowed in Unimarkup attributes.
Regarding attribute nesting and use in attribute blocks, HTML attributes must be applied to all elements the selector applies to.
However, HTML attributes may not be applied dynamically to elements on a website after elements got changed.

@mhatzl
Copy link
Contributor Author

mhatzl commented Aug 19, 2023

It might be possible to allow HTML attributes in media queries, because JavaScript offers matchMedia().

Caveat: This requires JavaScript and is not trivial to implement.

@mhatzl
Copy link
Contributor Author

mhatzl commented Aug 19, 2023

Because some HTML attributes like style and href are already covered by the Unimarkup syntax, these should not be allowed.
In general, every element must have a section defining what HTML attributes are allowed.

At some point every element should also have a section defining the allowed CSS attributes.
Since this will take a lot of time, it should not be part of this issue.

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

1 participant