[wp-trac] [WordPress Trac] #29807: add support for picture element and srcset attribute on img in wp_kses
WordPress Trac
noreply at wordpress.org
Thu Jun 15 10:23:07 UTC 2017
#29807: add support for picture element and srcset attribute on img in wp_kses
------------------------------------------+-----------------------------
Reporter: mattheu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------------
Comment (by desrosj):
https://core.trac.wordpress.org/attachment/ticket/29807/29807.5.diff
refreshes and combines the previous patches. @mattheu your original test
function had `ismap` as an allowed property on `<img />` tags. I couldn't
that in the history of `kses`. After removing that your tests pass
properly.
I also added a test to ensure a bad protocol is properly stripped out of
the `srcset` attribute.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29807#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list