From 04b07b3715a815f0140d870fb88a6822f06cf5cb Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 28 Oct 2023 02:23:11 +0200 Subject: Allow for true HTML ID- and class shorthands --- gsp.5 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'gsp.5') 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. -- cgit v1.2.3