Changes between Initial Version and Version 1 of Ticket #4091, comment 14
- Timestamp:
- 01/30/2019 09:19:04 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4091, comment 14
initial v1 4 4 Based on the discussion above, could we agree standard title attributes are not the most inclusive/accessible way to convey humour that otherwise may be a welcome, necessary, and important feature of wordpress.org? 5 5 6 I’d suggest an approach where the copy currently stored in `title` gets stored in `data-title` which ([according to MDN](https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes#Issues))is ignored by assistive technologies:6 I’d suggest an approach where the copy currently stored in `title` gets stored in `data-title` which according to MDN is ignored by assistive technologies: 7 7 8 8 > Do not store content that should be visible and accessible in data attributes, because assistive technology may not access them. In addition, search crawlers may not index data attributes' values. 9 > https://developer.mozilla.org/en-US/docs/Learn/HTML/Howto/Use_data_attributes#Issues 9 10 10 11 In our case, that would make `data-title` a perfect fit, wouldn’t it? A ‘tooltip’ emulating `title`’s `:hover` behaviour can be implemented via a minor amount of JavaScript, or probably even with CSS only.