MediaDocument creates <video> for audio files
Reported by
palosh...@gmail.com,
Dec 17
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36 Example URL: https://stopmusic.net/_ld/65/6549_B.B.E-Seven_Day.mp3 Steps to reproduce the problem: 1. Open any audiofile via browser. 2. Open dev tools 3. Open tab Elements What is the expected behavior? When we open an audio file, the following markup should be generated: <html> <head></head> <body> <audio controls autoplay name="media"> <source src="https://stopmusic.net/_ld/65/6549_B.B.E-Seven_Day.mp3" type="audio/mp3"> </audio> </body> </html> Because it is so stated in the specification https://html.spec.whatwg.org/#read-media What went wrong? Instead correct <audio> tag we will see that: <html> <head></head> <body> <video controls autoplay name="media"> <source src="https://stopmusic.net/_ld/65/6549_B.B.E-Seven_Day.mp3" type="audio/mp3"> </video> </body> </html> Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? No Does this work in other browsers? No Firefox/64.0, Maxthon/5.2.3.4000, Safari/537.36 Chrome version: 70.0.3538.110 Channel: stable OS Version: Windows 7 Flash Version: I tested it in 38 version of Google Chrome and this bug was there. If this error doesn't not correct, intentionally explain the reason.
,
Dec 17
,
Dec 18
To be perfectly precise, the specification says to do this markup:
<html>
<head></head>
<body>
<audio src="https://stopmusic.net/_ld/65/6549_B.B.E-Seven_Day.mp3" controls autoplay></audio>
</body>
</html>
,
Dec 26
Thanks for filing the issue... Able to reproduce the issue on reported chrome version 70.0.3538.110 also on latest chrome 73.0.3652.0 using Mac 10.14.0, Ubuntu 17.10 and Windows 10. Same behavior is seen on M60(60.0.3112.113) hence considering it as non-regression and marking it as Untriaged. Thanks! |
|||
►
Sign in to add a comment |
|||
Comment 1 by tkent@chromium.org
, Dec 17Summary: MediaDocument creates <video> for audio files (was: Why doesn't browser create correspond html code for opening audiofiles)