mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 734982 - Map ARIA role 'form', r=surkov, f=eitan
This commit is contained in:
parent
2d5342e963
commit
40f355e610
@ -172,6 +172,15 @@ nsRoleMapEntry nsARIAMap::gWAIRoleMap[] =
|
||||
kNoReqStates,
|
||||
eReadonlyUntilEditable
|
||||
},
|
||||
{
|
||||
"form",
|
||||
roles::FORM,
|
||||
kUseMapRole,
|
||||
eNoValue,
|
||||
eNoAction,
|
||||
eNoLiveAttr,
|
||||
kNoReqStates
|
||||
},
|
||||
{
|
||||
"grid",
|
||||
roles::TABLE,
|
||||
|
@ -26,12 +26,14 @@
|
||||
testRole("aside", ROLE_NOTE);
|
||||
|
||||
testRole("main", ROLE_DOCUMENT);
|
||||
testRole("form", ROLE_FORM);
|
||||
|
||||
// Some AT may look for this
|
||||
testAttrs("nav", {"xml-roles" : "navigation"}, true);
|
||||
testAttrs("footer", {"xml-roles" : "contentinfo"}, true);
|
||||
testAttrs("aside", {"xml-roles" : "complementary"}, true);
|
||||
testAttrs("main", {"xml-roles" : "main"}, true); // ARIA override
|
||||
testAttrs("main", {"xml-roles" : "main"}, true); // // ARIA override
|
||||
testAttrs("form", {"xml-roles" : "form"}, true);
|
||||
|
||||
// And some AT may look for this
|
||||
testAttrs("nav", {"tag" : "nav"}, true);
|
||||
@ -39,7 +41,8 @@
|
||||
testAttrs("footer", {"tag" : "footer"}, true);
|
||||
testAttrs("article", {"tag" : "article"}, true);
|
||||
testAttrs("aside", {"tag" : "aside"}, true);
|
||||
testAttrs("main", {"tag" : "article"}, true); // no override expected
|
||||
testAttrs("main", {"tag" : "article"}, true);
|
||||
testAttrs("form", {"tag" : "article"}, true);
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
@ -51,19 +54,24 @@
|
||||
<body>
|
||||
|
||||
<a target="_blank"
|
||||
title="Provide mappings for html5 <nav> <header> <footer> <article>"
|
||||
href="https://bugzilla.mozilla.org/show_bug.cgi?id=593368">
|
||||
Mozilla Bug 593368
|
||||
title="Provide mappings for html5 <nav> <header> <footer> <article>"
|
||||
href="https://bugzilla.mozilla.org/show_bug.cgi?id=593368">
|
||||
Bug 593368
|
||||
</a><br/>
|
||||
<a target="_blank"
|
||||
href="https://bugzilla.mozilla.org/show_bug.cgi?id=613502"
|
||||
title="Map <article> like we do aria role article">
|
||||
Mozilla Bug 613502
|
||||
href="https://bugzilla.mozilla.org/show_bug.cgi?id=613502"
|
||||
title="Map <article> like we do aria role article">
|
||||
Bug 613502
|
||||
</a>
|
||||
<a target="_blank"
|
||||
href="https://bugzilla.mozilla.org/show_bug.cgi?id=610650"
|
||||
title="Change implementation of HTML5 landmark elements to conform">
|
||||
Mozilla Bug 610650
|
||||
href="https://bugzilla.mozilla.org/show_bug.cgi?id=610650"
|
||||
title="Change implementation of HTML5 landmark elements to conform">
|
||||
Bug 610650
|
||||
</a>
|
||||
<a target="_blank"
|
||||
href="https://bugzilla.mozilla.org/show_bug.cgi?id=734982"
|
||||
title="Map ARIA role FORM">
|
||||
Bug 734982
|
||||
</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none"></div>
|
||||
@ -77,6 +85,7 @@
|
||||
|
||||
<article id="article">an article</article>
|
||||
<article id="main" role="main">a main area</article>
|
||||
<article id="form" role="form">a form area</article>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -35,6 +35,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=529289
|
||||
|
||||
// strong landmark
|
||||
testRole("application", ROLE_APPLICATION);
|
||||
testRole("form", ROLE_FORM);
|
||||
|
||||
// weak landmarks
|
||||
var weak_landmarks = ["banner", "complementary", "contentinfo",
|
||||
@ -93,6 +94,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=529289
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=469688">Mozilla Bug 520188</a>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=529289">Mozilla Bug 529289</a>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=529289">Mozilla Bug 607219</a>
|
||||
<a target="_blank"
|
||||
title="Map ARIA role FORM"
|
||||
href="https://bugzilla.mozilla.org/show_bug.cgi?id=735645">
|
||||
Bug 735645
|
||||
</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none"></div>
|
||||
@ -108,6 +113,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=529289
|
||||
|
||||
<!-- landmarks -->
|
||||
<div role="application" id="application">application</div>
|
||||
<div role="form" id="form">form</div>
|
||||
|
||||
<!-- weak landmarks -->
|
||||
<div role="banner" id="banner">banner</div>
|
||||
<div role="complementary" id="complementary">complementary</div>
|
||||
<div role="contentinfo" id="contentinfo">contentinfo</div>
|
||||
|
Loading…
Reference in New Issue
Block a user