aboutsummaryrefslogtreecommitdiff
path: root/gsp.5
diff options
context:
space:
mode:
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.