bring back and deprecate hgroup element (WEB-23578)

This commit is contained in:
Dennis Ushakov
2017-05-15 14:10:14 +03:00
parent b7fda6e24c
commit 825d7e0989
4 changed files with 35 additions and 34 deletions
@@ -341,6 +341,11 @@ common.attrs.other =
}+
}
## color for <link rel="mask-icon"> and <meta name="theme-color">
common.data.color =
w:color
## MIME types
common.data.mimetype =
@@ -162,6 +162,7 @@ datatypes w = "http://whattf.org/datatype-draft"
& shared-hyperlink.attrs.type?
& referrerpolicy?
& link.attrs.sizes?
& link.attrs.color?
# link.attrs.title included in common.attrs
& embedded.content.attrs.crossorigin?
& ( common.attrs.aria.role.link
@@ -207,6 +208,10 @@ datatypes w = "http://whattf.org/datatype-draft"
attribute sizes {
w:string "any" | common.data.sizes
}
link.attrs.color =
attribute color {
common.data.color
}
link.inner =
( empty )
@@ -107,6 +107,31 @@
common.elem.flow |= h6.elem
## Heading Group: <hgroup>
hgroup.elem =
element hgroup { hgroup.inner & hgroup.attrs } & nonW3C
hgroup.attrs =
( common.attrs
& ( common.attrs.aria.implicit.heading
| common.attrs.aria.role.heading
| common.attrs.aria.role.tab
| common.attrs.aria.role.presentation
)?
)
hgroup.inner =
( ( h1.elem
| h2.elem
| h3.elem
| h4.elem
| h5.elem
| h6.elem
)
& common.elem.script-supporting*
)+
common.elem.flow |= hgroup.elem
# #####################################################################
## Section Meta
@@ -1,34 +0,0 @@
--- /Users/denofevil/Code/sandbox/checker/syntax/relaxng/sectional.rnc 2014-01-24 12:18:24.000000000 +0400
+++ html5/sectional.rnc 2014-01-24 14:06:03.000000000 +0400
@@ -107,31 +107,6 @@
common.elem.flow |= h6.elem
-## Heading Group: <hgroup>
-
- hgroup.elem =
- element hgroup { hgroup.inner & hgroup.attrs } & nonW3C
- hgroup.attrs =
- ( common.attrs
- & ( common.attrs.aria.implicit.heading
- | common.attrs.aria.role.heading
- | common.attrs.aria.role.tab
- | common.attrs.aria.role.presentation
- )?
- )
- hgroup.inner =
- ( ( h1.elem
- | h2.elem
- | h3.elem
- | h4.elem
- | h5.elem
- | h6.elem
- )
- & common.elem.script-supporting*
- )+
-
- common.elem.flow |= hgroup.elem
-
# #####################################################################
## Section Meta