[wp-trac] [WordPress Trac] #61398: Missing src attribute on <audio> tag prevents m4a audio files playing in safari.
WordPress Trac
noreply at wordpress.org
Sun Sep 7 03:35:24 UTC 2025
#61398: Missing src attribute on <audio> tag prevents m4a audio files playing in
safari.
-------------------------------------------------+-------------------------
Reporter: ericmulder | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.9
Component: Media | Version: 6.6
Severity: normal | Resolution:
Keywords: has-patch has-test-info changes- | Focuses:
requested |
-------------------------------------------------+-------------------------
Comment (by joedolson):
I think the big question here is, essentially, "does forcing a `src`
attribute cause any problems?"
The main one I can think of as potential is source switching - in a
browser that doesn't support the `src` attribute's media, does it still
access the alternate format in the `source` element?
If, for example, we force a FLAC mime type in the `src` attribute, and the
m4a in the `source` element, does Safari play the m4a? Does it require
that there *is* a src attribute, or does it only play the file in the
`src` attribute? My reading of the spec suggests that it should go to
`source` and still play, but given that we're already operating in a not-
quite-complying-with-spec scenario, we could get surprised.
The test cases to figure out the details seem pretty complicated for what
is ultimately an edge case. But my general impression is that it should
all work normally if we're just ensuring that the `src` attribute is
present, without removing any `source` elements.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61398#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list