Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video HTML tag does not work #168

Open
hxii opened this issue Jul 1, 2021 · 0 comments
Open

Video HTML tag does not work #168

hxii opened this issue Jul 1, 2021 · 0 comments

Comments

@hxii
Copy link

hxii commented Jul 1, 2021

For example, using the following HTML block in the text is causing an error:

<video controls width="450">
    <source src="[source]"
            type="video/webm">
    Sorry, your browser doesn't support embedded videos.
</video>

Error:

127.0.0.1:50013 [500]: /speed-pt3 - Uncaught TypeError: Argument 1 passed to DOMNode::removeChild() must be an instance of DOMNode, null given in /Users/paul/git/saisho_v3/Classes/02_ParsedownExtra.php:484
Stack trace:
#0 /Users/paul/git/saisho_v3/Classes/02_ParsedownExtra.php(484): DOMNode->removeChild(NULL)
#1 /Users/paul/git/saisho_v3/Classes/02_ParsedownExtra.php(232): ParsedownExtra->processTag('')
#2 /Users/paul/git/saisho_v3/Classes/03_ParsedownExtended.php(1099): ParsedownExtra->blockMarkupComplete(Array)
#3 /Users/paul/git/saisho_v3/Classes/01_Parsedown.php(52): ParsedownExtended->linesElements(Array)
#4 /Users/paul/git/saisho_v3/Classes/01_Parsedown.php(26): Parsedown->textElements('>This entry (an...')
#5 /Users/paul/git/saisho_v3/Classes/02_ParsedownExtra.php(46): Parsedown->text('\n>This entry (a...')
#6 /Users/paul/git/saisho_v3/Classes/03_ParsedownExtended.php(1267): ParsedownExtra->text('\n>This entry (a...')
#7 /Users/paul/git/saisho_v3/Classes/03_ParsedownExtended.php(1284): ParsedownExtended->body('\n>This entry (a...')
#8 /U in /Users/paul/git/saisho_v3/Classes/02_ParsedownExtra.php on line 484
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant