<video> tag without src component preventing files from being opened

Steps to reproduce

Add a <video> tag to a markdown file, without a src component. When opening the file next, this will prevent the file from being opened.

Example of something that can be added to the file to prevent it from opening:

<video> </video>

Example of something that will still work:

<video src=""></video>

Did you follow the troubleshooting guide? [Y/N]

Yes, this also happens in the sandbox vault.

Expected result

I’d expect files to be able to open regardless of broken tags. In addition, I would expect a file to still be able to open if a video was embedded as follows:

<video controls>
  <source src="some_source.webm" type="video/webm" />
</video>

Which currently does not work because the <video> tag itself has no src component. Note that the above is valid syntax according to the MDN docs.

Actual result

Obsidian gives the error Failed to open "" open closing and trying to open the file.

Environment

SYSTEM INFO:
	Obsidian version: v1.8.1
	Installer version: v1.6.7
	Operating system: Windows 11 Pro 10.0.26100
	Login status: logged in
	Language: en
	Catalyst license: insider
	Insider build toggle: on
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

See also conversation in the general channel on discord.

thanks

will be fixed 1.8.2

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.