Dummy Selector
Test of Filter
This text will be green if the rule has been applied.
Code Syntax
null#testElement {
color: #00CC00;
}
Browser Support/Behaviour
Applied by:
- Windows Internet Explorer 4.0
Not applied by:
- Win/Mac Mozilla 1.6
- Win/Mac Mozilla 1.2-1.5
- Win/Mac Mozilla 1.0-1.1
- Windows Internet Explorer 7b
- Windows Internet Explorer 6.0
- Windows Internet Explorer 5.5
- Windows Internet Explorer 5.0
- Windows Netscape 6.0
- Windows Netscape 4.0
- Windows Opera 8.0
- Windows Opera 7.5
- Windows Opera 7.0
- Windows Opera 6.0
- Mac OSX Internet Explorer 5.2
- Mac OSX Opera 8.5
- Mac OSX Opera 7.5
- Mac OSX Opera 6.0
- Mac OSX Safari 2.0
- Mac OSX Safari 1.2
- Mac OSX Safari 1.1
- Mac OSX Safari 1.0
- Mac OSX OmniWeb 5.1
- Mac OSX OmniWeb 4.2
- Mac Classic Internet Explorer 5.1
- Mac Classic Internet Explorer 5.0
- Mac Classic Netscape 4.0
- Mac Classic Opera 6.0
- Unix Konquerer 3.0
Special Notes
Either an id or a class must be applied to the element in order for this hack to work. Use a class if you want to apply the rule on several elements; use an id if it should be applied to a single element.
Because the null element doesn't exist in XHTML, standards-compliant browsers will not apply this rule (so the text in the example block should be red in compliant browsers). Browsers that do apply this rule (IE4 Win, Opera 3.5) will apply it to all instances of the class or id.
More information