From 68f6068979bee7cc13c9b90f933a7aade7224a4c Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Tue, 23 Apr 2013 12:11:55 +0400 Subject: [PATCH] Updated html 5 schema --- .../src/resources/html5-schema/LICENSE | 2 +- .../resources/html5-schema/applications.rnc | 121 +++++++-- .../src/resources/html5-schema/aria.rnc | 88 ++++++- .../src/resources/html5-schema/block.rnc | 52 ++-- .../src/resources/html5-schema/common.rnc | 86 ++++++- .../resources/html5-schema/core-scripting.rnc | 15 +- .../src/resources/html5-schema/data.rnc | 22 +- .../src/resources/html5-schema/embed.rnc | 107 +++++++- .../src/resources/html5-schema/html5.rnc | 2 +- .../src/resources/html5-schema/media.rnc | 45 ++-- .../src/resources/html5-schema/meta.rnc | 65 ++++- .../src/resources/html5-schema/microdata.rnc | 19 ++ .../src/resources/html5-schema/phrase.rnc | 65 ++++- .../src/resources/html5-schema/rdfa.rnc | 240 ++++++++++++++++++ .../src/resources/html5-schema/revision.rnc | 10 +- .../src/resources/html5-schema/sectional.rnc | 47 +++- .../src/resources/html5-schema/structural.rnc | 80 ++++-- .../src/resources/html5-schema/tables.rnc | 39 ++- .../src/resources/html5-schema/web-forms.rnc | 98 +++++-- .../src/resources/html5-schema/web-forms2.rnc | 62 +++-- .../testData/highlighting/html5/LICENSE | 2 +- .../highlighting/html5/applications.rnc | 138 ++++++++-- .../testData/highlighting/html5/aria.rnc | 88 ++++++- .../testData/highlighting/html5/block.rnc | 57 +++-- .../testData/highlighting/html5/common.rnc | 99 +++++++- .../highlighting/html5/core-scripting.rnc | 130 +++++----- .../testData/highlighting/html5/data.rnc | 19 +- .../testData/highlighting/html5/embed.rnc | 124 +++++++-- .../highlighting/html5/form-datatypes.rnc | 13 +- .../testData/highlighting/html5/html5.rnc | 2 +- .../testData/highlighting/html5/media.rnc | 79 +++++- .../testData/highlighting/html5/meta.rnc | 127 +++++---- .../testData/highlighting/html5/microdata.rnc | 26 +- .../testData/highlighting/html5/phrase.rnc | 102 +++++++- .../testData/highlighting/html5/rdfa.rnc | 240 ++++++++++++++++++ .../testData/highlighting/html5/revision.rnc | 12 +- .../testData/highlighting/html5/sectional.rnc | 47 +++- .../highlighting/html5/structural.rnc | 80 ++++-- .../testData/highlighting/html5/tables.rnc | 45 +++- .../testData/highlighting/html5/web-forms.rnc | 110 ++++++-- .../html5/web-forms2-scripting.rnc | 6 - .../highlighting/html5/web-forms2.rnc | 88 ++++--- .../testData/highlighting/html5/xhtml5.rnc | 2 +- 43 files changed, 2366 insertions(+), 535 deletions(-) create mode 100644 xml/relaxng/src/resources/html5-schema/rdfa.rnc create mode 100644 xml/relaxng/testData/highlighting/html5/rdfa.rnc diff --git a/xml/relaxng/src/resources/html5-schema/LICENSE b/xml/relaxng/src/resources/html5-schema/LICENSE index fd1093cc1c60..0a2a5e0dc68b 100644 --- a/xml/relaxng/src/resources/html5-schema/LICENSE +++ b/xml/relaxng/src/resources/html5-schema/LICENSE @@ -2,7 +2,7 @@ The RELAX NG Schema for (X)HTML 5 is licensed under the MIT open source license. The following legal notice applies to all files in this directory: Copyright (c) 2005-2007 Elika J. Etemad (fantasai) and Henri Sivonen (hsivonen) -Copyright (c) 2007-2008 Mozilla Foundation +Copyright (c) 2007-2012 Mozilla Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/xml/relaxng/src/resources/html5-schema/applications.rnc b/xml/relaxng/src/resources/html5-schema/applications.rnc index bf27090d5950..a98c20df4935 100644 --- a/xml/relaxng/src/resources/html5-schema/applications.rnc +++ b/xml/relaxng/src/resources/html5-schema/applications.rnc @@ -43,8 +43,8 @@ datatypes w = "http://whattf.org/datatype-draft" common.attrs.dropzone = attribute dropzone { list { - ( xsd:string { pattern = "[sS]:.+" } - | xsd:string { pattern = "[fF]:.+" } + ( xsd:string { pattern = "[sS][tT][rR][iI][nN][gG]:.+" } + | xsd:string { pattern = "[fF][iI][lL][eE]:.+" } )* , ( w:string "copy" @@ -52,8 +52,8 @@ datatypes w = "http://whattf.org/datatype-draft" | w:string "link" )? , - ( xsd:string { pattern = "[sS]:.+" } - | xsd:string { pattern = "[fF]:.+" } + ( xsd:string { pattern = "[sS][tT][rR][iI][nN][gG]:.+" } + | xsd:string { pattern = "[fF][iI][lL][eE]:.+" } )* } } @@ -89,6 +89,10 @@ datatypes w = "http://whattf.org/datatype-draft" ( common.attrs & progress.attrs.value? & progress.attrs.max? + & ( common.attrs.aria.role.progressbar + | common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? ) progress.attrs.value = attribute value { @@ -103,6 +107,34 @@ datatypes w = "http://whattf.org/datatype-draft" common.elem.phrasing |= progress.elem +## Dialog box, inspector, or window: + dialog.elem = + element dialog { dialog.inner & dialog.attrs } + dialog.attrs = + ( common.attrs + & dialog.attrs.open? + & ( common.attrs.aria.role.alert + | common.attrs.aria.role.alertdialog + | common.attrs.aria.role.contentinfo + | common.attrs.aria.role.dialog + | common.attrs.aria.role.log + | common.attrs.aria.role.main + | common.attrs.aria.role.marquee + | common.attrs.aria.role.region + | common.attrs.aria.role.status + | common.attrs.aria.landmark.application + | common.attrs.aria.landmark.document + | common.attrs.aria.landmark.search + )? + ) + dialog.attrs.open = + attribute open { + w:string "open" | w:string "" + } + dialog.inner = + ( common.inner.flow ) + common.elem.flow |= dialog.elem + ## Command with an associated action: command.command.elem = @@ -111,6 +143,9 @@ datatypes w = "http://whattf.org/datatype-draft" ( common.attrs & command.command.attrs.type? & common-command.attrs + & ( common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? ) command.command.attrs.type = attribute type { @@ -124,11 +159,14 @@ datatypes w = "http://whattf.org/datatype-draft" element command { command.inner & command.radio.attrs } command.radio.attrs = ( common.attrs - & ( command.radio.attrs.type - & command.radio.attrs.radiogroup #REVISIT taking liberties here - & command.radio.attrs.checked? - ) - & common-command.attrs + & ( command.radio.attrs.type + & command.radio.attrs.radiogroup #REVISIT taking liberties here + & command.radio.attrs.checked? + ) + & common-command.attrs + & ( common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? ) command.radio.attrs.type = attribute type { @@ -150,11 +188,14 @@ datatypes w = "http://whattf.org/datatype-draft" element command { command.inner & command.checkbox.attrs } command.checkbox.attrs = ( common.attrs - & ( command.checkbox.attrs.type - & command.checkbox.attrs.checked? - ) - & common-command.attrs + & ( command.checkbox.attrs.type + & command.checkbox.attrs.checked? ) + & common-command.attrs + & ( common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? + ) command.checkbox.attrs.type = attribute type { w:string "checkbox" @@ -197,6 +238,7 @@ datatypes w = "http://whattf.org/datatype-draft" ( common.attrs & menu.attrs.type? & menu.attrs.label? + & common.attrs.aria? # some roles only allowed if type is "toolbar" state; check in assertions ) menu.attrs.type = attribute type { @@ -219,7 +261,9 @@ datatypes w = "http://whattf.org/datatype-draft" mli.elem = element li { mli.inner & mli.attrs } mli.attrs = - ( common.attrs ) + ( common.attrs + & common.attrs.aria? + ) mli.inner = ( common.inner.flow ) @@ -244,7 +288,7 @@ datatypes w = "http://whattf.org/datatype-draft" common.data.integer.non-negative } canvas.inner.flow = - ( common.inner.flow ) + ( common.inner.transparent.flow ) canvas.inner.phrasing = ( common.inner.phrasing ) @@ -258,15 +302,50 @@ datatypes w = "http://whattf.org/datatype-draft" details.attrs = ( common.attrs & details.attrs.open? - & common.attrs.aria.implicit.region? + & ( common.attrs.aria.implicit.region # aria-expanded must be true if open attr present; check by assertions + | common.attrs.aria.role.alertdialog + | common.attrs.aria.role.banner + | common.attrs.aria.role.button + | common.attrs.aria.role.combobox + | common.attrs.aria.role.dialog + | common.attrs.aria.role.directory + | common.attrs.aria.role.heading + | common.attrs.aria.role.img + | common.attrs.aria.role.link + | common.attrs.aria.role.list + | common.attrs.aria.role.listbox + | common.attrs.aria.role.listitem + | common.attrs.aria.role.log + | common.attrs.aria.role.marquee + | common.attrs.aria.role.menu + | common.attrs.aria.role.menubar + | common.attrs.aria.role.note + | common.attrs.aria.role.separator + | common.attrs.aria.role.status + | common.attrs.aria.role.tab + | common.attrs.aria.role.tablist + | common.attrs.aria.role.tabpanel + | common.attrs.aria.role.toolbar + | common.attrs.aria.role.tree + | common.attrs.aria.role.treeitem + | common.attrs.aria.landmark.application + | common.attrs.aria.landmark.article + | common.attrs.aria.landmark.complementary + | common.attrs.aria.landmark.contentinfo + | common.attrs.aria.landmark.document + | common.attrs.aria.landmark.form + | common.attrs.aria.landmark.main + | common.attrs.aria.landmark.navigation + | common.attrs.aria.landmark.search + )? ) details.attrs.open = attribute open { w:string "open" | w:string "" } details.inner = - ( summary.elem? - , common.inner.flow + ( summary.elem + , common.inner.flow ) common.elem.flow |= details.elem @@ -276,6 +355,10 @@ datatypes w = "http://whattf.org/datatype-draft" summary.elem = element summary { summary.inner & summary.attrs } summary.attrs = - ( common.attrs ) + ( common.attrs + & ( common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? + ) summary.inner = ( common.inner.phrasing ) diff --git a/xml/relaxng/src/resources/html5-schema/aria.rnc b/xml/relaxng/src/resources/html5-schema/aria.rnc index 9721d36e0fdb..a7a30672aafa 100644 --- a/xml/relaxng/src/resources/html5-schema/aria.rnc +++ b/xml/relaxng/src/resources/html5-schema/aria.rnc @@ -315,6 +315,7 @@ common.attrs.aria.implicit.listitem |= { string "true" | string "false" #default } + common.attrs.aria.prop.readonly |= aria.prop.readonly ## relevant aria.prop.relevant = @@ -410,6 +411,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "alert" } common.attrs.aria |= aria.alert + common.attrs.aria.role.alert |= aria.alert ## alertdialog aria.alertdialog = @@ -420,6 +422,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "alertdialog" } common.attrs.aria |= aria.alertdialog + common.attrs.aria.role.alertdialog |= aria.alertdialog ## application aria.application = @@ -463,6 +466,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "button" } common.attrs.aria |= aria.button + common.attrs.aria.role.button |= aria.button ## checkbox aria.checkbox = @@ -474,7 +478,18 @@ common.attrs.aria.implicit.listitem |= common.attrs.aria |= aria.checkbox -# XXX columnheader +# columnheader + aria.columnheader = + ( aria.role.columnheader + & aria.prop.sort? # not inherited + & aria.prop.readonly? # not inherited + & aria.state.selected? # not inherited + & aria.state.expanded? + ) + aria.role.columnheader = + attribute role { string "columnheader" } + + common.attrs.aria |= aria.columnheader ## combobox aria.combobox = @@ -486,6 +501,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "combobox" } common.attrs.aria |= aria.combobox + common.attrs.aria.role.combobox |= aria.combobox ## complementary aria.complementary = @@ -528,6 +544,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "dialog" } common.attrs.aria |= aria.dialog + common.attrs.aria.role.dialog |= aria.dialog ## directory aria.directory = @@ -538,6 +555,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "directory" } common.attrs.aria |= aria.directory + common.attrs.aria.role.directory |= aria.directory ## document aria.document = @@ -550,6 +568,17 @@ common.attrs.aria.implicit.listitem |= common.attrs.aria |= aria.document common.attrs.aria.landmark.document |= aria.document +## form + aria.form = + ( aria.role.form + & aria.state.expanded? + ) + aria.role.form = + attribute role { string "form" } + + common.attrs.aria |= aria.form + common.attrs.aria.landmark.form |= aria.form + ## grid aria.grid = ( aria.role.grid @@ -588,7 +617,17 @@ common.attrs.aria.implicit.listitem |= common.attrs.aria |= aria.group -## XXX heading +## heading + aria.heading = + ( aria.role.heading + & aria.prop.level ? # not inherited + & aria.state.expanded? + ) + aria.role.heading = + attribute role { string "heading" } + + common.attrs.aria |= aria.heading + common.attrs.aria.role.heading |= aria.heading ## img aria.img = @@ -599,6 +638,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "img" } common.attrs.aria |= aria.img + common.attrs.aria.role.img |= aria.img ## link aria.link = @@ -608,6 +648,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "link" } common.attrs.aria |= aria.link + common.attrs.aria.role.link |= aria.link ## list aria.list = @@ -618,6 +659,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "list" } common.attrs.aria |= aria.list + common.attrs.aria.role.list |= aria.list ## listbox aria.listbox = @@ -630,6 +672,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "listbox" } common.attrs.aria |= aria.listbox + common.attrs.aria.role.listbox |= aria.listbox ## listitem aria.listitem = @@ -643,6 +686,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "listitem" } common.attrs.aria |= aria.listitem + common.attrs.aria.role.listitem |= aria.listitem ## log aria.log = @@ -653,6 +697,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "log" } common.attrs.aria |= aria.log + common.attrs.aria.role.log |= aria.log ## main aria.main = @@ -674,6 +719,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "marquee" } common.attrs.aria |= aria.marquee + common.attrs.aria.role.marquee |= aria.marquee ## math aria.math = @@ -695,6 +741,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "menu" } common.attrs.aria |= aria.menu + common.attrs.aria.role.menu |= aria.menu ## menubar aria.menubar = @@ -706,6 +753,8 @@ common.attrs.aria.implicit.listitem |= attribute role { string "menubar" } common.attrs.aria |= aria.menubar + common.attrs.aria.role.menubar |= aria.menubar + ## menuitem aria.menuitem = @@ -714,6 +763,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "menuitem" } common.attrs.aria |= aria.menuitem + common.attrs.aria.role.menuitem |= aria.menuitem ## menuitemcheckbox aria.menuitemcheckbox = @@ -724,6 +774,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "menuitemcheckbox" } common.attrs.aria |= aria.menuitemcheckbox + common.attrs.aria.role.menuitemcheckbox |= aria.menuitemcheckbox ## menuitemradio aria.menuitemradio = @@ -735,6 +786,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "menuitemradio" } common.attrs.aria |= aria.menuitemradio + common.attrs.aria.role.menuitemradio |= aria.menuitemradio ## navigation aria.navigation = @@ -768,6 +820,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "option" } common.attrs.aria |= aria.option + common.attrs.aria.role.option |= aria.option ## presentation @@ -779,6 +832,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "presentation" } common.attrs.aria |= aria.presentation + common.attrs.aria.role.presentation |= aria.presentation ## progressbar aria.progressbar = @@ -792,6 +846,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "progressbar" } common.attrs.aria |= aria.progressbar + common.attrs.aria.role.progressbar |= aria.progressbar ## radio aria.radio = @@ -803,6 +858,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "radio" } common.attrs.aria |= aria.radio + common.attrs.aria.role.radio |= aria.radio ## radiogroup aria.radiogroup = @@ -824,6 +880,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "region" } common.attrs.aria |= aria.region + common.attrs.aria.role.region |= aria.region ## row aria.row = @@ -838,7 +895,18 @@ common.attrs.aria.implicit.listitem |= common.attrs.aria |= aria.row -# XXX rowheader +# rowheader + aria.rowheader = + ( aria.role.rowheader + & aria.prop.sort? # not inherited + & aria.prop.readonly? # not inherited + & aria.state.selected? # not inherited + & aria.state.expanded? + ) + aria.role.rowheader = + attribute role { string "rowheader" } + + common.attrs.aria |= aria.rowheader ## search aria.search = @@ -860,6 +928,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "separator" } common.attrs.aria |= aria.separator + common.attrs.aria.role.separator |= aria.separator ## slider aria.slider = @@ -873,6 +942,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "slider" } common.attrs.aria |= aria.slider + common.attrs.aria.role.slider |= aria.slider ## spinbutton aria.spinbutton = @@ -887,6 +957,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "spinbutton" } common.attrs.aria |= aria.spinbutton + common.attrs.aria.role.spinbutton |= aria.spinbutton ## status aria.status = @@ -898,6 +969,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "status" } common.attrs.aria |= aria.status + common.attrs.aria.role.status |= aria.status ## tab aria.tab = @@ -909,6 +981,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "tab" } common.attrs.aria |= aria.tab + common.attrs.aria.role.tab |= aria.tab ## tablist aria.tablist = @@ -918,6 +991,8 @@ common.attrs.aria.implicit.listitem |= ) aria.role.tablist = attribute role { string "tablist" } + common.attrs.aria |= aria.tablist + common.attrs.aria.role.tablist |= aria.tablist ## tabpanel aria.tabpanel = @@ -928,6 +1003,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "tabpanel" } common.attrs.aria |= aria.tabpanel + common.attrs.aria.role.tabpanel |= aria.tabpanel ## textbox aria.textbox = @@ -940,6 +1016,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "textbox" } common.attrs.aria |= aria.textbox + common.attrs.aria.role.textbox |= aria.textbox ## timer aria.timer = @@ -962,6 +1039,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "toolbar" } common.attrs.aria |= aria.toolbar + common.attrs.aria.role.toolbar |= aria.toolbar ## tooltip aria.tooltip = @@ -984,6 +1062,7 @@ common.attrs.aria.implicit.listitem |= attribute role { string "tree" } common.attrs.aria |= aria.tree + common.attrs.aria.role.tree |= aria.tree ## treegrid aria.treegrid = @@ -1013,5 +1092,4 @@ common.attrs.aria.implicit.listitem |= attribute role { string "treeitem" } common.attrs.aria |= aria.treeitem - - + common.attrs.aria.role.treeitem |= aria.treeitem diff --git a/xml/relaxng/src/resources/html5-schema/block.rnc b/xml/relaxng/src/resources/html5-schema/block.rnc index 3f4332b23dc9..eeef41192014 100644 --- a/xml/relaxng/src/resources/html5-schema/block.rnc +++ b/xml/relaxng/src/resources/html5-schema/block.rnc @@ -25,7 +25,12 @@ datatypes w = "http://whattf.org/datatype-draft" hr.elem = element hr { hr.inner & hr.attrs } hr.attrs = - ( common.attrs ) + ( common.attrs + & ( common.attrs.aria.role.separator + | common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? + ) hr.inner = ( empty ) @@ -56,8 +61,17 @@ datatypes w = "http://whattf.org/datatype-draft" element ul { ul.inner & ul.attrs } ul.attrs = ( common.attrs - & ( common.attrs.aria - | common.attrs.aria.implicit.region + & ( ( common.attrs.aria.role.directory + | common.attrs.aria.role.list + | common.attrs.aria.role.listbox + | common.attrs.aria.role.menu + | common.attrs.aria.role.menubar + | common.attrs.aria.role.tablist + | common.attrs.aria.role.toolbar + | common.attrs.aria.role.tree + | common.attrs.aria.role.presentation + ) + | common.attrs.aria.implicit.region )? ) ul.inner = @@ -71,9 +85,7 @@ datatypes w = "http://whattf.org/datatype-draft" element li { li.inner & li.attrs } li.attrs = ( common.attrs - & ( common.attrs.aria - | common.attrs.aria.implicit.listitem - )? + & common.attrs.aria? ) li.inner = ( common.inner.flow ) @@ -87,8 +99,17 @@ datatypes w = "http://whattf.org/datatype-draft" & ol.attrs.start? & ol.attrs.reversed? & ol.attrs.type? - & ( common.attrs.aria - | common.attrs.aria.implicit.region + & ( ( common.attrs.aria.role.directory + | common.attrs.aria.role.list + | common.attrs.aria.role.listbox + | common.attrs.aria.role.menu + | common.attrs.aria.role.menubar + | common.attrs.aria.role.tablist + | common.attrs.aria.role.toolbar + | common.attrs.aria.role.tree + | common.attrs.aria.role.presentation + ) + | common.attrs.aria.implicit.region )? ) ol.attrs.start = @@ -115,9 +136,7 @@ datatypes w = "http://whattf.org/datatype-draft" oli.attrs = ( common.attrs & oli.attrs.value? - & ( common.attrs.aria - | common.attrs.aria.implicit.listitem - )? + & common.attrs.aria? ) oli.attrs.value = attribute value { @@ -154,7 +173,7 @@ datatypes w = "http://whattf.org/datatype-draft" & common.attrs.aria? ) dt.inner = - ( common.inner.phrasing ) + ( common.inner.flow ) ## Definition Description:
@@ -183,9 +202,7 @@ datatypes w = "http://whattf.org/datatype-draft" & common.attrs.aria? ) div.inner = - ( style.elem.scoped* - , common.inner.flow - ) + ( common.inner.flow ) common.elem.flow |= div.elem @@ -195,7 +212,10 @@ datatypes w = "http://whattf.org/datatype-draft" element legend { legend.inner & legend.attrs } legend.attrs = ( common.attrs - & common.attrs.aria.implicit.region? + & ( common.attrs.aria.implicit.region + | common.attrs.aria.role.presentation + | common.attrs.aria.role.menuitem + )? ) legend.inner = ( common.inner.phrasing ) diff --git a/xml/relaxng/src/resources/html5-schema/common.rnc b/xml/relaxng/src/resources/html5-schema/common.rnc index c4f1eb9b0e0b..34d15fba1aa3 100644 --- a/xml/relaxng/src/resources/html5-schema/common.rnc +++ b/xml/relaxng/src/resources/html5-schema/common.rnc @@ -29,6 +29,9 @@ datatypes w = "http://whattf.org/datatype-draft" ## XML features that can't be serialized as HTML nonHTMLizable = empty +## features that are not part of the W3C HTML spec + nonW3C = empty + # ##################################################################### ## Wildcards # # ##################################################################### @@ -86,8 +89,15 @@ datatypes w = "http://whattf.org/datatype-draft" ## Prose Content + common.inner.transparent.flow = + ( text & common.elem.flow* ) + common.inner.flow = - ( text & common.elem.flow* ) # REVISIT