tweaking the test suite
Posted 2003-06-20 @ 00:40:58
I just finished reworking the templates for my CSS filter tests to compensate for a bug in Netscape 4.x (*gasp*) that was causing that browser to render the text in the ID selector test correctly, even though it doesn't understand the syntax
element#id. It turns out that NN4.x doesn't actually ignore that construct, it simply parses it
incorrectly, treating it as if it were element #id (a descendant selector). This happened to match
the #test-div I'd originally been using because it was contained within another DIV. Go figure.
I worked around this by changing the target element to a SPAN throughout the test suite. So, the new test
document demonstrates correctly that the ID selector can be used to hide rules from Netscape 4.x.
Really, given the number of alternative methods that don't have such caveats, I was tempted to remove that technique altogether. In the end, though, I realized that wouldn't be cool.