Issue Bug Closed

#87911(YouTube|Vimeo)Renderer renders broken tag if additionalAttributes are defined

Sascha Egerer 03/14/19, 12:55 updated 03/14/19, 14:44

Description

Since the commit commit:a32a9a746f807b14571139f0cb7caa00b8d037a5 the Youtube and Vimeo Renderes are broken if the attribute additionalAttributes is given.

Test Case:

<f:media file="{video}" additionalConfig="{loop: 0}" additionalAttributes="{poster: ''}" />

Current result:

<iframe src="https://www.youtube-nocookie.com/embed/XXX?autohide=1&amp;controls=2&amp;enablejsapi=1&amp;origin=https%3A%2F%2FXXX&amp;showinfo=0" allowfullscreen 0="poster=&quot;&quot;" allow="fullscreen"></iframe>

Expected and previous result:

<iframe src="https://www.youtube-nocookie.com/embed/XXX?autohide=1&amp;controls=2&amp;enablejsapi=1&amp;origin=https%3A%2F%2FXXX&amp;showinfo=0" allowfullscreen poster="" allow="fullscreen"></iframe>

Reviews 1