Open oliverlangan opened 9 years ago
Track is a void element so this behaviour is "expected". We could provide a better error message.
It sounds like a bug if outerHTML
behaves that way. Is it relevant, though?
I agree this is a bug in WebKit's outerHTML. Firefox behaves correctly. I just discovered it via HTMLBars. https://bugs.webkit.org/show_bug.cgi?id=147084
When using a then HTMLBars fails within the EngTag block.
"Error: Closing tag
track
(on line 5) did not match last open tagvideo
(on line 3)."This is unfortunate, because WebKit (Safari and Chrome both) appends the closing tag when getting the .outerHTML from the DOM.
Sample of failing HTML snippet:
(adapted from http://www.jwplayer.com/html5/track/ )