Closed Bug 448633 Opened 17 years ago Closed 17 years ago

<audio> with autoplay="false" plays anyway

Categories

(Core :: Audio/Video, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: info, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/2008073003 Minefield/3.1a2pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/2008073003 Minefield/3.1a2pre ID:2008073003 http://www.whatwg.org/specs/web-apps/current-work/#autoplay suggests that autoplay="false" should not play the sound. But it does. Reproducible: Always Steps to Reproduce: 1. Go to a page with an <audio> tag with autoplay="false" attribute. Actual Results: The audio starts playing. Expected Results: Audio should not immediately start playing. I also tried paused="true", and likewise the audio started playing, not sure if thta's a separate bug. Possibly related: bug 250855 is that autoplay=false doesn't work in embed tag.
Component: DOM: HTML → DOM: Core & HTML
Component: DOM: Core & HTML → Video/Audio
QA Contact: general → video.audio
autoplay is a boolean attribute. autoplay="false" actually means that the value of autoplay is true. So the audio plays. From the HTML 5 spec: "The presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value. "
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
"The autoplay attribute is a boolean attribute." (§4.7.10.6) "The presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value." (§2.4.2) Therefore, autoplay="false" is actually setting the attribute to true. To set it to false, don't specify autoplay at all. RESO INVA
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.