Skip to content

Commit 5feb30f

Browse files
committed
feat(performance): also added support for data and aria prefixed attributes
fix #74
1 parent d0d9714 commit 5feb30f

36 files changed

Lines changed: 7238 additions & 5029 deletions

.vscodeignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@ out/**/*.map
1616
commitlint.config.js
1717
gulpfile.js
1818
package-lock.json
19+
tsconfig.json
20+
tsconfig.test.json
21+
node_modules
22+
webpack.config.js
23+
*.todo
24+
.hushlogin
25+
.eslintrc.js
26+
.prettierignore

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ This plugin adds syntax highlighting for angular HTML template files in VS Code.
4242
- [Regex](#regex)
4343
- [Deprecated attributes](#deprecated-attributes)
4444
- [Deprecated tags](#deprecated-tags)
45+
- [ARIA-prefixed attributes](#aria-prefixed-attributes)
46+
- [Data attributes](#data-attributes)
4547
- [SVG](#svg)
4648
- [Non-string attributes](#non-string-attributes)
4749
- [Deprecated tags](#deprecated-tags-1)
@@ -167,6 +169,16 @@ And with [colorize support](https://marketplace.visualstudio.com/items?itemName=
167169
168170
<img src="assets/deprecated-html-tags.png" title="Deprecated tags" alt="Deprecated tags" />
169171

172+
## ARIA-prefixed attributes
173+
174+
> See the [complete list](docs/ARIA-ATTRIBUTES.md)
175+
176+
<img src="assets/aria-attributes.png" title="Aria attributes" alt="Aria attributes" />
177+
178+
## Data attributes
179+
180+
<img src="assets/data-attributes.png" title="Data attributes" alt="Data attributes" />
181+
170182
# SVG
171183

172184
## Non-string attributes

assets/aria-attributes.png

61.4 KB
Loading

assets/data-attributes.png

27.6 KB
Loading

docs/ARIA-ATTRIBUTES.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# ARIA-prefixed attributes
2+
3+
> List of supported ARIA-prefixed attributes
4+
5+
- aria-activedescendant
6+
- aria-atomic
7+
- aria-autocomplete
8+
- aria-busy
9+
- aria-checked
10+
- aria-colcount
11+
- aria-colindex
12+
- aria-colspan
13+
- aria-controls
14+
- aria-current
15+
- aria-describedby
16+
- aria-description
17+
- aria-details
18+
- aria-disabled
19+
- aria-dropeffect
20+
- aria-errormessage
21+
- aria-expanded
22+
- aria-flowto
23+
- aria-grabbed
24+
- aria-haspopup
25+
- aria-hidden
26+
- aria-invalid
27+
- aria-keyshortcuts
28+
- aria-label
29+
- aria-labelledby
30+
- aria-level
31+
- aria-live
32+
- aria-modal
33+
- aria-multiline
34+
- aria-multiselectable
35+
- aria-orientation
36+
- aria-owns
37+
- aria-placeholder
38+
- aria-posinset
39+
- aria-pressed
40+
- aria-readonly
41+
- aria-relevant
42+
- aria-required
43+
- aria-roledescription
44+
- aria-rowcount
45+
- aria-rowindex
46+
- aria-rowspan
47+
- aria-selected
48+
- aria-setsize
49+
- aria-sort
50+
- aria-valuemax
51+
- aria-valuemin
52+
- aria-valuenow
53+
- aria-valuetext
54+
55+
## Reference
56+
57+
- [MDN WebDocs ARIA states and properties spec](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes)

docs/THEMING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
- [Entities](#entities)
2020
- [DOM events](#dom-events)
2121
- [Generic attributes](#generic-attributes)
22+
- [ARIA attributes](#aria-attributes)
23+
- [Data attributes](#data-attributes)
2224
- [SVG](#svg)
2325
- [Non-string attributes](#non-string-attributes)
2426
- [XML](#xml)
@@ -142,6 +144,20 @@
142144

143145
- `class` - html-template.ng.attributes.generic
144146

147+
## ARIA attributes
148+
149+
<img src="../assets/aria-attributes.png" title="Aria attributes" alt="Aria attributes" />
150+
151+
- `aria-` - html-template.ng.aria-attribute.prefix
152+
- `sort` - html-template.ng.aria-attribute.suffix
153+
154+
## Data attributes
155+
156+
<img src="../assets/data-attributes.png" title="Data attributes" alt="Data attributes" />
157+
158+
- `data-` - html-template.ng.data-attribute.prefix
159+
- `test` - html-template.ng.data-attribute.suffix
160+
145161
# SVG
146162

147163
## Non-string attributes

0 commit comments

Comments
 (0)