aboutsummaryrefslogtreecommitdiff
path: root/gsp.5
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-28 02:23:11 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-10-28 02:23:11 +0200
commit04b07b3715a815f0140d870fb88a6822f06cf5cb (patch)
tree633b92a23a37802aae83d5f5cd6047164500ab65 /gsp.5
parent024cd373e052db4193343b1eeb0767df98d7ea1e (diff)
Allow for true HTML ID- and class shorthandsv2.0.0
Diffstat (limited to 'gsp.5')
-rw-r--r--gsp.517
1 files changed, 16 insertions, 1 deletions
diff --git a/gsp.5 b/gsp.5
index 96d8ae6..5c67bd4 100644
--- a/gsp.5
+++ b/gsp.5
@@ -1,4 +1,4 @@
-.Dd $Mdocdate: October 2 2023 $
+.Dd $Mdocdate: October 28 2023 $
.Dt GSP 5
.Os
.Sh NAME
@@ -153,6 +153,21 @@ div id="foo" class="bar baz" {
div class="bar" {}
}
.Ed
+.Pp
+It is important to note that HTML5 allows for an ID- or class name to contain
+just about anything, therefor
+.Ql .→Ħ{}
+is a valid ID shorthand.
+This is important because it means that the following doesn’t actually create a
+node with no children:
+.Bd -literal -offset indent
+div .foo{}
+.Ed
+.Pp
+You must instead include a space:
+.Bd -literal -offset indent
+div .foo {}
+.Ed
.Ss Document types
.Nm
does not support document types.