fixPathsInCssText
Cleans and fixes any relative url() calls.
Usefull when parsing pages from another directory, ie contentPane load external
css before url fix
/*css before change*/
.easy{ background-image:url(images/image.png) }
.dontReplaceEasy{ background-image:url(images/images/image.png) }
.hardurl{background-image:url( "../../source/test/%20t'e(s)t.gif("1')?foo=bar11103&bar=baz-foo" );}body{};
.file{background-image: url(file:///home/nobody/image.png);}
.http{background-image: url(http://dojotoolkit.org/image.png);}
.https{background-image: url(https://dojotoolkit.org/image.png);}
css after url fix
/*css before change*/
.easy{ background-image:url(foo/images/images/image.png) }
.dontReplaceEasy{ background-image:url(foo/images/images/images/image.png) }
.hardurl{background-image:url(source/test/%20t'e(s)t.gif("1')?foo=bar11103&bar=baz-foo);}body{};
.file{background-image: url(file:///home/nobody/image.png);}
.http{background-image: url(http://dojotoolkit.org/image.png);}
.https{background-image: url(https://dojotoolkit.org/image.png);}
Paths fixed correctly!
REGEXP SPEED TEST! Fixed paths on 1536 url(..)'s in 7ms
Success in all test for fixPathsInCssText
insertCssText
inserts CssText into document
Should be blue text and yellow background <- left one should look like this
Should get background image <- left one should look like this
Success in all test for insertCssText
insertCssFile
download and insert a css file using sync load
Gets toolbar background image and fonts, font color etc.. <- left one should look like this
Success in all test for insertCssFile