aboutsummaryrefslogtreecommitdiff
path: root/spec.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-11 15:12:27 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-11 15:12:27 -0700
commitcf2956fff2507228e171985a7155a9b72b988680 (patch)
tree61d0b006b346dbcaf18a6b3719de7d713d431074 /spec.txt
parent7b0c743a6de7188d2cc40f044dd9fb0c30caa5d0 (diff)
Allow (non-initial) hyphens in tag names.
This, together with previous changes in HTML block spec, closes #239.
Diffstat (limited to 'spec.txt')
-rw-r--r--spec.txt18
1 files changed, 17 insertions, 1 deletions
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 /></p>
.
+Custom tag names can be used:
+
+.
+<responsive-image src="foo.jpg" />
+
+<My-Tag>
+foo
+</My-Tag>
+.
+<responsive-image src="foo.jpg" />
+<My-Tag>
+foo
+</My-Tag>
+.
+
Illegal tag names, not parsed as HTML:
.