Fix invalidHTMLMediaElement error