Start a new topic

<video> tag does not show properly

When trying to use the `<video>` tag in a post, the served HTML is broken due to the `<source>` tag and all HTML attributes being removed. For example, [this post](https://cohost.org/dcoles/post/306676-the-knight-blender3):

image


Post contents:

<div style="border: dashed 1px blue">
  <video controls>
    <source src="https://kria.dcoles.net/~dcoles/tmp/theknight.mp4" type="video/mp4">
    video control not supported
  </video>
</div>

 Rendered HTML:

<div style="border: 1px dashed blue;">
  <video>
    
    video control not supported
  </video>
</div>

I've also tried using a `<video src="...">` style video, but still see all the tag attributes stripped out.

Unless videos are specifically banned from use, I would expect to see the HTML replicated 1:1 (though perhaps with the `muted` attribute set).

Tested on Chrome (Windows 11) Version 107.0.5304.107 (Official Build) (64-bit)


2 people have this problem
Login or Signup to post a comment