зеркало из https://github.com/mozilla/gecko-dev.git
Bug 166591 - marquee created dynamically (e.g. innerHTML) is not rendered, r+sr=bzbarsky
This commit is contained in:
Родитель
3dae18d659
Коммит
7a30e530d1
|
@ -0,0 +1,6 @@
|
|||
<html><head>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test"><marquee behavior="alternate" scrollamount="0">dynamic marquee</marquee></div>
|
||||
</body>
|
||||
</html>
|
|
@ -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>
|
|
@ -0,0 +1 @@
|
|||
== 166591-dynamic-1.html 166591-dynamic-1-ref.html
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче