Closed Bug 270470 Opened 20 years ago Closed 20 years ago

appendChild(thisembed) does not result in sound being played

Categories

(Core :: SVG, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jay, Unassigned)

References

()

Details

Attachments

(5 files)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20041103 Firefox/0.9.1+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a5) Gecko/20041103 Firefox/0.9.1+

test file should play sound on opening file and again onmouseover yellow rect.

Reproducible: Always
Steps to Reproduce:
1.open file, sound plays
2.mouseover yellow rect
3.

Actual Results:  
alert box showing that appendchild has added the element together with attributes

Expected Results:  
play sound as well

http://www.peepo.com uses innerHTML in very similar way, and plays new sound
onmousover. also tried innerHTML, did not work for me.
Attached image dont use
needs file games.mp3 in the same directory
Attached audio sound file
Attached image don't use
Attachment #166257 - Attachment description: file to play a sound onloading SVG, without any event handling → dont use
Attachment #166267 - Attachment description: plays mp3 in this attachment → don't use
for some reason, the cgi version does not show the innerHTML contents in the
alert dialogue.

the URL version does: http://peepo.co.uk/temp/append-sound.svg
Jim says

script should be: createElementNS(htmlNamespace,...)

changing to wfm until checked

 
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Attached image plays mp3 on mousover
use:

document.createElementNS("http://www.w3.org/1999/xhtml", "embed");
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: