Bug 166591 - marquee created dynamically (e.g. innerHTML) is not rendered, r+sr=bzbarsky

This commit is contained in:
Martijn Wargers 2009-01-20 15:58:44 +01:00
parent 3dae18d659
commit 7a30e530d1
5 changed files with 25 additions and 4 deletions

View File

@ -0,0 +1,6 @@
<html><head>
</head>
<body>
<div id="test"><marquee behavior="alternate" scrollamount="0">dynamic marquee</marquee></div>
</body>
</html>

View File

@ -0,0 +1,11 @@
<html><head>
<script>
function init() {
document.getElementById('test').innerHTML = '<marquee behavior="alternate" scrollamount="0">dynamic marquee</marquee>';
}
</script>
</head>
<body onload="init();">
<div id="test"></div>
</body>
</html>

View File

@ -0,0 +1 @@
== 166591-dynamic-1.html 166591-dynamic-1-ref.html

View File

@ -80,6 +80,9 @@ include line-breaking/reftest.list
# mathml/
include mathml/reftest.list
# marquee/
include marquee/reftest.list
# native-theme/
include native-theme/reftest.list

View File

@ -207,9 +207,6 @@
onset="this.setAttribute('width', val);"
/>
<!-- For sniffing purposes -->
<field name="nsMarqueeVersion">"0.9.7"</field>
<method name="_set_scrollDelay">
<parameter name="aValue"/>
<body>
@ -563,7 +560,10 @@
// init needs to be run after the page has loaded in order to calculate
// the correct height/width
window.addEventListener("load", lambda, false);
if (document.readyState == "complete")
lambda();
else
window.addEventListener("load", lambda, false);
]]>
</constructor>
</implementation>