Modify ↓
Opened 5 years ago
Closed 5 years ago
#13879 closed defect (fixed)
[PATCH] Prefix custom attribute names with "data-" for HTML5
| Reported by: | anonymous | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Component: | CcSelectorPlugin |
| Severity: | normal | Keywords: | patch |
| Cc: | Trac Release: | 1.4 |
Description
Due to Trac now needing a new permission to change CC fields (I'm always admin, so how would I know?), I ended up investigating this plugin a bit and found a small enhancement. HTML validator doesn't like the custom attribute names used, but I found out it will like them if you prefix them with "data-".
Attaching a patch for this admittedly minor issue.
I'm not sure how this might affect the markup created by the older Genshi template (it's an older HTML?), but I included the change there (not tested) because obviously the Javascript needed to change as well.
Attachments (1)
Change History (4)
Changed 5 years ago by
| Attachment: | ccselectorplugin_make_attribute_names_good_for_html5.patch added |
|---|
comment:1 Changed 5 years ago by
| Owner: | set to Ryan J Ollos |
|---|---|
| Status: | new → accepted |
comment:3 Changed 5 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Note: See
TracTickets for help on using
tickets.



Change custom attribute names.