diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-07-11 15:12:27 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-07-11 15:12:27 -0700 |
commit | cf2956fff2507228e171985a7155a9b72b988680 (patch) | |
tree | 61d0b006b346dbcaf18a6b3719de7d713d431074 | |
parent | 7b0c743a6de7188d2cc40f044dd9fb0c30caa5d0 (diff) |
Allow (non-initial) hyphens in tag names.
This, together with previous changes in HTML block spec,
closes #239.
-rw-r--r-- | spec.txt | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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: . |