[wp-trac] [WordPress Trac] #44724: KSES: Allow 'download' attribute for links
WordPress Trac
noreply at wordpress.org
Sat Aug 4 01:05:15 UTC 2018
#44724: KSES: Allow 'download' attribute for links
----------------------------+----------------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: Formatting | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: |
----------------------------+----------------------------------------
HTML5 introduced a [https://www.w3schools.com/TAgs/att_a_download.asp
download] attribute for `<a>` tag. When a user with Author role tries to
create a link with this attribute, it's stripped by KSES.
Before saving:
{{{
<a href="/images/w3logo.jpg" download="w3logo">w3logo</a>
}}}
After saving:
{{{
<a href="/images/w3logo.jpg">w3logo</a>
}}}
At the moment, allowed attributes for `<a>` are: `href`, `rel`, `rev`,
`name`, and `target`.
`download` should be added as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44724>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list