HTML5 can't create video element on Chromium 3

2019-05-27 03:45发布

问题:

Until Chromium 37, var videoElement = document.createElement('video') would create a video element, but with Chromium 38 it's not the case anymore.

EDIT

If you want to check this, open a console and type :

var videoElement = document.createElement('video')
videoElement.toString()

This should return

"[object HTMLVideoElement]"

proving videoElement is a video element. In Chromium 38 I get :

"[object HTMLUnknownElement]"

Is there any way to fix this ?

PS: I created an issue on chromium issues : https://code.google.com/p/chromium/issues/detail?id=427856