Escaped Selector
Test of Filter
This text will be green if the rule has been applied.
Code Syntax
#te\stElement {
color: #00CC00;
}
Browser Support/Behaviour
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
Because IE 6.x will behave like IE 5.5 if it is in quirks mode, any hack used to account for the differences in behaviour between IE 6 in standards mode and Win IE 5.x will not work as planned. Be sure that your HTML document will be interpretted in standards mode in IE 6 if you are going to use this hack (or others like the High Pass Filter or Inline High Pass Filter).
- Windows Internet Explorer 4.0
- Windows Netscape 6.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 Opera 6.0
Not applied by:
- Windows Internet Explorer 5.5
- Windows Internet Explorer 5.0
- Windows Netscape 4.0
- Mac Classic Netscape 4.0
- Unix Konquerer 3.0
Special Notes
This hack is just a variation on the Simplified Box Model Hack but allows all the declarations applied to a selector to be ignored instead of just a single declaration.
Like all hacks that use escaping, the character after the \ must not be between '0' and '9' or 'a' and 'f' (or 'A' and 'F') because these can be interpreted as hex character codes and not as the literal character.
More information