WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #33121, comment 12


Ignore:
Timestamp:
10/10/2018 02:42:32 PM (13 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33121, comment 12

    initial v1  
    22- Allow `data-*` attributes. Needs to be set as `data-*` when adding it, not to be mixed with the HTML 4.0 `data` attribute (https://www.w3.org/TR/html40/struct/objects.html#adef-data).
    33- Add `data-*` to all elements by default.
     4
     5Wondering if we should pass the restrictions (array of possible values) or just short circuit as soon as we match a `data-*` attribute. The thing is that the restrictions will apply to all data attributes in the element, not to a specific attribute.