Skip to content

Commit ee6465f

Browse files
committed
Add graphic aria
1 parent b85c265 commit ee6465f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ THE SOFTWARE.
8686
11. [SVG 2.0 Spec][11]
8787
12. [MathML 3.0 Spec][12]
8888
13. [DPUB WAI-ARIA 1.0][13]
89+
14. [WAI-ARIA Graphics Module][14]
8990

9091

9192
<a href='https://ko-fi.com/H2H3782K' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi4.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
@@ -107,3 +108,4 @@ THE SOFTWARE.
107108
[11]:https://www.w3.org/TR/SVG2/
108109
[12]:https://www.w3.org/TR/MathML3/
109110
[13]:https://www.w3.org/TR/dpub-aria-1.0/
111+
[14]:https://www.w3.org/TR/graphics-aria-1.0/

autoload/xml/aria.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,18 @@ let dpub_role = [
135135
\ 'doc-toc'
136136
\ ]
137137

138+
" Ref: https://www.w3.org/TR/graphics-aria-1.0/
139+
" Version: W3C Candidate Recommendation 29 March 2018
140+
let graphic_role = [
141+
\ 'graphics-document',
142+
\ 'graphics-object',
143+
\ 'graphics-symbol'
144+
\ ]
145+
138146
let role = extend(widget_role, document_structure)
139147
let role = extend(role, landmark_role)
140148
let role = extend(role, dpub_role)
149+
let role = extend(role, graphic_role)
141150

142151
" https://www.w3.org/TR/wai-aria-1.1/#states_and_properties
143152
let global_states_and_properties = {

0 commit comments

Comments
 (0)