mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 17:41:03 +01:00
bypass FF's built CSS.escape(), to benefit from serializeAsString
This commit is contained in:
parent
cc6a811934
commit
93c4502acc
1 changed files with 1 additions and 6 deletions
|
@ -55,12 +55,7 @@ if ( document.querySelector('iframe.dom-inspector.' + vAPI.sessionId) !== null )
|
||||||
// Added serializeAsString parameter.
|
// Added serializeAsString parameter.
|
||||||
|
|
||||||
/*! http://mths.be/cssescape v0.2.1 by @mathias | MIT license */
|
/*! http://mths.be/cssescape v0.2.1 by @mathias | MIT license */
|
||||||
var cssEscape = (function(root) {
|
var cssEscape = (function(/*root*/) {
|
||||||
|
|
||||||
var css = root.CSS || {};
|
|
||||||
if ( css.escape ) {
|
|
||||||
return css.escape;
|
|
||||||
}
|
|
||||||
|
|
||||||
var InvalidCharacterError = function(message) {
|
var InvalidCharacterError = function(message) {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
|
|
Loading…
Reference in a new issue