[Webkit-unassigned] [Bug 20651] svgElement.className.baseValue does not work
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 7 16:14:09 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=20651
------- Comment #12 from eric at webkit.org 2008-10-07 16:14 PDT -------
Here is a fully functioning test case which still demonstrates that
setChanged() doesn't cause a redraw and thus doesn't seem to be a big worry
here re: classes being set to the same value causing too much work.
<style>
.foo {
background-color: green;
}
.bar {
width: 100px;
height: 100px;
}
.baz {
background-color: red;
}
</style>
<div id="test" class="foo bar"></div>
<script>
var toggleCount = 0;
function toggleClassNames() {
var div = document.getElementById("test");
if (toggleCount++ % 2) {
div.className = "foo bar";
} else {
div.className = " bar foo ";
}
setTimeout("toggleClassNames()", 100);
}
toggleClassNames();
</script>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list