|
|
|
|
|
by lisper
3422 days ago
|
|
You can do this: <tag> ==> (:tag)
<tag/> ==> (:tag nil)
<tag></tag> ==> (:tag "")
Using (:tag/) is a bad idea because that would screw up attributes.CL-WHO doesn't support this, but that would be easy to change if it ever actually mattered to anyone. |
|
In HTML, <script></script> is valid. <script /> is invalid. <br /> is valid. <br></br> is invalid. So they are represented differently.
> Using (:tag/) is a bad idea because that would screw up attributes.
For my example?
> You actually can distinguish between those if you really want to. It's just a matter of picking a convention.That sounds like it could work. So a leading `nil' would be treated as a special case (not a child node):