diff options
Diffstat (limited to 'xml/relaxng/src/resources/html5-schema/embed.rnc')
-rw-r--r-- | xml/relaxng/src/resources/html5-schema/embed.rnc | 107 |
1 files changed, 97 insertions, 10 deletions
diff --git a/xml/relaxng/src/resources/html5-schema/embed.rnc b/xml/relaxng/src/resources/html5-schema/embed.rnc index 27c9856ecdd3..014ac5bb61d2 100644 --- a/xml/relaxng/src/resources/html5-schema/embed.rnc +++ b/xml/relaxng/src/resources/html5-schema/embed.rnc @@ -15,12 +15,12 @@ namespace local = "" img.attrs = ( common.attrs & img.attrs.src - & img.attrs.alt? + & img.attrs.alt? # ARIA: if alt empty, only allowed role value is "presentation"; check in assertions & img.attrs.height? & img.attrs.width? & img.attrs.usemap? & img.attrs.ismap? - & img.attrs.border? # obsolete + & img.attrs.border? # obsolete & common.attrs.aria? ) img.attrs.src = @@ -67,6 +67,10 @@ namespace local = "" & embed.attrs.height? & embed.attrs.width? & embed.attrs.other* + & ( common.attrs.aria.landmark.application + | common.attrs.aria.landmark.document + | common.attrs.aria.role.img + )? ) embed.attrs.src = attribute src { @@ -94,6 +98,7 @@ namespace local = "" | title | dir | lang + | translate | style | tabindex | contextmenu @@ -141,7 +146,6 @@ namespace local = "" | onplaying | onprogress | onratechange - | onreadystatechange | onreset | onscroll | onseeked @@ -174,6 +178,7 @@ namespace local = "" | aria-describedby | aria-disabled | aria-dropeffect + | aria-expanded | aria-flowto | aria-grabbed | aria-haspopup @@ -184,7 +189,7 @@ namespace local = "" | aria-live | aria-owns | aria-relevant - | aria-required + | aria-required | spellcheck | accesskey | itemref @@ -194,6 +199,64 @@ namespace local = "" | itemid | name | align + | about + | prefix + | property + | typeof + | vocab + | content + | datatype + | href + | rel + | resource + | rev + | inlist + | its-loc-note + | its-loc-note-type + | its-loc-note-ref + | its-term-info-ref + | its-term + | its-term-confidence + | its-within-text + | its-domain-mapping + | its-disambig-granularity + | its-disambig-confidence + | its-disambig-class-ref + | its-disambig-ident + | its-disambig-ident-ref + | its-disambig-source + | its-locale-filter-list + | its-person + | its-person-ref + | its-org + | its-org-ref + | its-tool + | its-tool-ref + | its-rev-person + | its-rev-person-ref + | its-rev-org + | its-rev-org-ref + | its-rev-tool + | its-rev-tool-ref + | its-prov-ref + | its-provenance-records-ref + | its-loc-quality-issues-ref + | its-loc-quality-issue-type + | its-loc-quality-issue-comment + | its-loc-quality-issue-severity + | its-loc-quality-issue-profile-ref + | its-loc-quality-issue-enabled + | its-loc-quality-rating-score + | its-loc-quality-rating-vote + | its-loc-quality-rating-score-threshold + | its-loc-quality-rating-vote-threshold + | its-loc-quality-rating-profile-ref + | its-mt-confidence + | its-allowed-characters + | its-storage-size + | its-storage-encoding + | its-line-break-type + | its-annotators-ref ) { string @@ -224,7 +287,11 @@ namespace local = "" & object.attrs.usemap? & object.attrs.name? & common-form.attrs.form? - & common.attrs.aria? + & ( common.attrs.aria.implicit.region + | common.attrs.aria.landmark.application + | common.attrs.aria.landmark.document + | common.attrs.aria.role.img + )? ) object.attrs.data = attribute data { @@ -252,7 +319,7 @@ namespace local = "" } object.inner.flow = ( param.elem* - , common.inner.flow + , common.inner.transparent.flow ) object.inner.phrasing = ( param.elem* @@ -270,6 +337,9 @@ namespace local = "" ( common.attrs & param.attrs.name & param.attrs.value + & ( common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? ) param.attrs.name = attribute name { @@ -295,8 +365,11 @@ namespace local = "" & iframe.attrs.height? & iframe.attrs.sandbox? & iframe.attrs.seamless? - & ( common.attrs.aria - | common.attrs.aria.implicit.region + & iframe.attrs.allowfullscreen? + & ( common.attrs.aria.implicit.region + | common.attrs.aria.landmark.application + | common.attrs.aria.landmark.document + | common.attrs.aria.role.img )? ) iframe.attrs.src = @@ -470,6 +543,10 @@ namespace local = "" , ( w:string "allow-top-navigation" )? } } & v5only + iframe.attrs.allowfullscreen = + attribute allowfullscreen { + w:string "allowfullscreen" | w:string "" + } & v5only iframe.inner = ( text ) @@ -487,13 +564,16 @@ namespace local = "" map.attrs = ( common.attrs & map.attrs.name + & ( common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? ) # REVISIT make id required in Schematron map.attrs.name = attribute name { common.data.name } map.inner.flow = - ( common.inner.flow ) + ( common.inner.transparent.flow ) map.inner.phrasing = ( common.inner.phrasing ) @@ -505,7 +585,10 @@ namespace local = "" area.elem = element area { area.inner & area.attrs } area.attrs = - ( common.attrs + ( common.attrs.basic + & common.attrs.i18n + & common.attrs.present + & common.attrs.other & ( area.attrs.alt & shared-hyperlink.attrs.href )? @@ -516,6 +599,10 @@ namespace local = "" & shared-hyperlink.attrs.hreflang? & shared-hyperlink.attrs.type? & area.attrs.shape? + & ( common.attrs.aria.role.link + | common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? ) area.attrs.alt = attribute alt { |