[wp-trac] [WordPress Trac] #29807: add support for picture element and srcset attribute on img in wp_kses

WordPress Trac noreply at wordpress.org
Sun Apr 16 08:08:15 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 drrobotnik):

 Replying to [comment:17 ocean90]:
 > Thanks @drrobotnik! Could you please submit a patch that doesn't include
 code styling changes? They just make it harder to review the patch and is
 usually discouraged, see
 https://make.wordpress.org/core/handbook/contribute/code-refactoring/.
 >
 > Tests can be added to [source:/trunk/tests/phpunit/tests/kses.php].

 Oh, I think i misread one of the (wontfix) tickets about reformatting. I
 thought it said reformatting is only accepted with a refactor. No worries.

 Outside of the formatting/refactor, I've essentially only added the new
 attributes to the uri array (no additional validation). I was hoping this
 would be a kickoff to getting the issue resolved. Additionally, hoping
 someone else could contribute tests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29807#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list