gecko-dev/layout/reftests/bugs/645491-1.html
Boris Zbarsky 21298d6c2c Bug 645491 part 2. Speed up changes to id attributes on pages with lots of id selectors. r=dbaron
The basic idea is to only match against id selectors which might matter by keeping track of them in a hashtable instead of a flat list.  We still need to use a flat list for possibly-negated id selectors, unfortunately.
2011-04-12 19:57:48 -07:00

13 lines
270 B
HTML

<!-- This test needs to be in quirks mode -->
<html>
<head>
<style>
body { color: red; }
body#foo { color: green; }
</style>
</head>
<body onload="document.body.offsetWidth; document.body.id = 'FOO'">
This should be green
</body>
</html>