Page MenuHomePhabricator

MediaViewer creates broken HTML for embedding an image (incorrectly encodes HTML markup)
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Broken HTML code is created:

<p><a href="https://commons.wikimedia.org/wiki/File:Tierpark_Sababurg_Wildpark.jpg#/media/Datei:Tierpark_Sababurg_Wildpark.jpg"><img src="https://upload.wikimedia.org/wikipedia/commons/1/14/Tierpark_Sababurg_Wildpark.jpg" alt="Tierpark Sababurg Wildpark.jpg" height="1536" width="2048"></a><br>Von &lt;a href="//commons.wikimedia.org/wiki/User:Presse03" title="User:Presse03"&gt;Presse03&lt;/a&gt; - &lt;span class="int-own-work" lang="de"&gt;Eigenes Werk&lt;/span&gt;, <a href="https://creativecommons.org/licenses/by-sa/3.0" title="Creative Commons Attribution-Share Alike 3.0">CC BY-SA 3.0</a>, <a href="https://commons.wikimedia.org/w/index.php?curid=3624189">Link</a></p>

What should have happened instead?:
Working HTML code is created

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Click on the "share and embed" icon

Hi @Discostu, where exactly to see that icon? This is what I get:

Screenshot from 2023-10-04 14-58-58.jpg (931×1 px, 406 KB)

Aklapper changed the task status from Open to Stalled.Oct 4 2023, 1:28 PM

@Aklapper Maybe you have deactivated this is in a user setting? This is how the media browser looks when in a private tab and not logged in:

grafik.png (834×1 px, 2 MB)

Aklapper changed the task status from Stalled to Open.Oct 4 2023, 3:33 PM

I am very sorry, you are correct. I had not realized that I was missing some icons.

Aklapper renamed this task from Media viewer embedding HTML is broken to MediaViewer creates broken HTML for embedding an image (incorrectly encodes HTML markup).Oct 4 2023, 3:35 PM