From cf2956fff2507228e171985a7155a9b72b988680 Mon Sep 17 00:00:00 2001
From: John MacFarlane
Date: Sat, 11 Jul 2015 15:12:27 -0700
Subject: Allow (non-initial) hyphens in tag names.
This, together with previous changes in HTML block spec,
closes #239.
---
spec.txt | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
(limited to 'spec.txt')
diff --git a/spec.txt b/spec.txt
index f25439b..0f62a54 100644
--- a/spec.txt
+++ b/spec.txt
@@ -7498,7 +7498,8 @@ so custom tags (and even, say, DocBook tags) may be used.
Here is the grammar for tags:
A [tag name](@tag-name) consists of an ASCII letter
-followed by zero or more ASCII letters or digits.
+followed by zero or more ASCII letters, digits, or
+hyphens (`-`).
An [attribute](@attribute) consists of [whitespace],
an [attribute name], and an optional
@@ -7596,6 +7597,21 @@ _boolean zoop:33=zoop:33 />
_boolean zoop:33=zoop:33 />
.
+Custom tag names can be used:
+
+.
+
+
+
+foo
+
+.
+
+
+foo
+
+.
+
Illegal tag names, not parsed as HTML:
.
--
cgit v1.2.3