diff options
-rw-r--r-- | gsp.5 | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,4 +1,4 @@ -.Dd $Mdocdate: September 11 2023 $ +.Dd $Mdocdate: October 2 2023 $ .Dt GSP 5 .Os .Sh NAME @@ -85,6 +85,15 @@ with two empty div-nodes as children: .Bd -literal -offset indent footer foo bar { div{} div{} } .Ed +.Pp +When compiling an empty node +.Ql foo{} , +you get the result +.Ql <foo> . +If you want both an opening- and closing tag with no children, such as in +.Ql <foo></foo> , +then you can use an empty text-node as in +.Ql foo{-} . .Ss Node names Node names follow the exact same naming rules as names do in XML. See the XML reference in |