Changes between Version 3 and Version 4 of Ticket #1527


Ignore:
Timestamp:
11/06/2014 04:09:13 PM (5 years ago)
Author:
sebastian
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1527 – Description

    v3 v4  
    66Properly escape CSS selectors when generating element hiding filters, considering following rules: 
    77 
    8 * Non-alpha numeric ascii characters, except for the `-` (dash) and `_` (underscore), must be escaped everywhere in an id or class. 
     8* Non-alphanumeric ASCII characters, except for the `-` (dash) and `_` (underscore), must be escaped everywhere in an id or class. 
    99* Digits must be escaped when in the first place of an id or class. 
    1010* Dashes (`-`) must be escaped when in the first place of an id or class, and not followed by a character which isn't another dash or digit. 
    1111* Colons (`:`) must be escaped in tag names (other characters that would need escaping can not occur in a tag name). 
    1212* Quoted attribute values must still escape `\r` (carriage return), `\n` (new line), `\f` (new page) and `\0` (null). 
    13 * Control characters and numbers must be escaped based on their code point (e.g. `\n` -> `\0a `). Other characters can be escaped by prepending a `\` (backslash). 
     13* Control characters and digits must be escaped based on their code point (e.g. `\n` -> `\0a `). Other characters can be escaped by prepending a `\` (backslash).