pambrose
02/10/2021, 6:05 PM<section data-markdown> ... </section>
would be? In other words, how are tag attributes with no values expressed in the DSL?SerVB
02/10/2021, 7:03 PMpambrose
02/10/2021, 9:09 PM<section id="test"> ... </section>
is written as:
section { attributes["id"] = "test" }
but I am asking about the case where the tag attribute is not assigned a value.data-markdown
tag attribute is not assigned a value.SerVB
02/10/2021, 9:13 PM<section data-markdown> ... </section>
as section { attributes["data-markdown"] = "true" }
? I don't remember JS well but I think it should. In JS, there should be the same problem of accessing attributes without values, I think there should be just any valuepambrose
02/10/2021, 9:15 PM<section data-markdown="true"> ... </section>
which is not the same thing (and causes problems).SerVB
02/10/2021, 9:18 PMcauses problemsThen I don't know. But actually I'm interested what problems does it cause. Why do you need exactly ``<section data-markdown> ... </section>`` without a value of the attribute?
pambrose
02/10/2021, 9:55 PMtateisu
02/10/2021, 11:39 PM<section data-markdown>
is same to <section data-markdown="data-markdown">
You may see attributes without the equals sign or a value. That is a shorthand for providing the empty string in HTML, or the attribute’s name in XML.
To be clear, the values "`true`" and "`false`" are not allowed on boolean attributes.
pambrose
02/10/2021, 11:52 PM