Commit Graph

15 Commits

Author SHA1 Message Date
Timothée Mazzucotelli
3f978d86f6 Strip tags of ToC item's aria label
Some plugins/extensions might use the data-toc-label attribute
of headings to set a particular string for the ToC item title.

While not explicitly documented as possible or allowed,
they might set some HTML code instead of text.
In this case, the aria label of Toc nav elements break the HTML
as they will contain unescaped double quotes.

To fix this, we use the `striptags` filter
to remove any tags from the aria label, keeping text only.
2023-05-22 18:27:28 +02:00
squidfunk
3b921f76a3 Updated copyright year 2023-01-02 11:08:58 +01:00
squidfunk
e2556d84d6 Merge of features tied to 'Trinidad Scorpion' funding goal 2022-06-02 17:20:33 +02:00
squidfunk
9655c3a924 Updated dependencies and bumped copyright year 2022-01-10 09:59:00 +01:00
squidfunk
08e8525689 Updated copyright year 2021-02-14 16:54:27 +01:00
Jaime Iniesta
e7f7632278 Added aria-label to all nav items to improve accessibility. (#1516)
This ensures navigation landmarks are unique.

Related:

https://dequeuniversity.com/rules/axe/3.5/landmark-unique?application=rocketvalidator
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role
https://www.w3.org/TR/WCAG20-TECHS/ARIA14.html
2020-03-18 17:19:04 +01:00
squidfunk
41dc846753 Merge branch 'master' into refactor/rxjs-typescript 2020-02-10 12:34:58 +01:00
Christian Oliff
4f41b9aa52 Removed unneeded title attributes from text links in nav and sidebar (#1224) 2019-08-23 17:32:44 +02:00
squidfunk
e24f2a3d7e Removed remaining whitespace control tags 2019-06-15 15:23:03 +02:00
squidfunk
91f2289587 Reverted template minification, added minification by plugin 2019-06-15 15:16:14 +02:00
squidfunk
b36a725d30 Removed all whitespace from compiled files - saving 700 bytes per page (gzip) 2019-05-17 21:37:21 +02:00
squidfunk
cc47bb7464 Updated copyright year 2019-01-01 18:42:00 +01:00
squidfunk
c3cdb945a6 Updated copyright notice 2018-01-13 17:36:13 +01:00
squidfunk
f37bb76d18 Update copyright 2017-01-06 19:11:18 +01:00
squidfunk
9338045887 Refactored navigation and drawer 2016-09-23 11:56:25 +02:00