Skip to content

Commit d9c506a

Browse files
author
Nathan LaPre
committed
Bug 1821156: Map hgroup element to group role, r=Jamie
Per HTML AAM, HTML hgroup elements should have an implicit role=group instead of being generics. This revision implements that by mapping hgroup elements to roles::GROUPING in HTMLMarkupMap. It also removes the expected fail from the relevant web platform test, which we now pass. Differential Revision: https://phabricator.services.mozilla.com/D200204
1 parent 8966466 commit d9c506a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

accessible/base/HTMLMarkupMap.h

+2
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ MARKUPMAP(h5, New_HyperText, roles::HEADING)
207207

208208
MARKUPMAP(h6, New_HyperText, roles::HEADING)
209209

210+
MARKUPMAP(hgroup, New_HyperText, roles::GROUPING)
211+
210212
MARKUPMAP(
211213
hr,
212214
[](Element* aElement, LocalAccessible* aContext) -> LocalAccessible* {

testing/web-platform/meta/html-aam/roles.html.ini

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
[el-dfn]
1515
expected: FAIL
1616

17-
[el-hgroup]
18-
expected: FAIL
19-
2017
[el-dd]
2118
bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1829028
2219
expected: FAIL

0 commit comments

Comments
 (0)