Closed kthy closed 3 years ago
i remember about a year ago thinking about and looking into this for a few hours. can't remember what i did about it. I think I gave up. but calling the same name or empty for those attrs is a good idea.
you think a few cheeky classes in the namespace i.e async, checked, disabled_ may also work as additional?. how many does it apply to . all attributes? or just a small handful? I will investigate this a get back to you soon. It's a good one.
ignore my namespace idea. i think yours is better. empty for me would be most natural thing to do.
it actually ties in though to a bigger thought process. about being able to configure the default behaviour. I've been thinking for a whlie about some config settings for domonic. so that you could flag it do do certain types of output. i.e. so a flag to auto do that for you. that's on by default.
with such a config you could omit closing tags on lists for example and do cool html5 things.
In HTML5, there are a number of boolean attributes, e.g.
async
,checked
anddisabled
. It would be nice if these could be recognized and simply output as their short form. Currently, as a workaround, you can give them an empty string or their own name as value, e.g.gives
but would be nice if we could have