[wp-trac] [WordPress Trac] #50167: Relax kses rules to allow setting playsinline attributes in Video elements.

WordPress Trac noreply at wordpress.org
Thu May 14 12:08:24 UTC 2020


#50167: Relax kses rules to allow setting playsinline attributes in Video elements.
--------------------------+--------------------
 Reporter:  youknowriad   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.5
Component:  Editor        |    Version:  5.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 the playsinline attribute is a recent HTML attribute that is very
 important for mobile devices to allow playing (and auto-playing) videos
 inline.

 The block editor allows setting that attribute for a long time now in the
 video block but it went unnoticed that this attribute was stripped
 https://github.com/WordPress/gutenberg/pull/14500

 In this PR https://github.com/WordPress/gutenberg/pull/22346 we're also
 adding that attribute to the Cover block to fix video backgrounds on
 mobile.

 An extra php filter is added to "override" the limitation for the cover
 block and that code needs to be removed once the Kses rules are relaxed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50167>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list