WordPress.org

Making WordPress.org

Changes between Initial Version and Version 1 of Ticket #4091, comment 14


Ignore:
Timestamp:
01/30/2019 09:19:04 AM (21 months ago)
Author:
glueckpress
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4091, comment 14

    initial v1  
    44Based 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?
    55
    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:
     6I’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:
    77
    88> 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
    910
    1011In 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.