diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-10-28 02:23:11 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-10-28 02:23:11 +0200 |
commit | 04b07b3715a815f0140d870fb88a6822f06cf5cb (patch) | |
tree | 633b92a23a37802aae83d5f5cd6047164500ab65 /gsp.5 | |
parent | 024cd373e052db4193343b1eeb0767df98d7ea1e (diff) |
Allow for true HTML ID- and class shorthandsv2.0.0
Diffstat (limited to 'gsp.5')
-rw-r--r-- | gsp.5 | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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. |