File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ tree.URL = function (val, paths) {
5
5
this . attrs = val ;
6
6
} else {
7
7
// Add the base path if the URL is relative and we are in the browser
8
- if ( ! / ^ (?: h t t p s ? : \/ | f i l e : \/ | d a t a : \/ ) ? \/ / . test ( val . value ) && paths . length > 0 && typeof ( window ) !== 'undefined' ) {
8
+ if ( ! / ^ (?: h t t p s ? : \/ \/ | f i l e : \/ \/ | d a t a : ) ? / . test ( val . value ) && paths . length > 0 && typeof ( window ) !== 'undefined' ) {
9
9
val . value = paths [ 0 ] + ( val . value . charAt ( 0 ) === '/' ? val . value . slice ( 1 ) : val . value ) ;
10
10
}
11
11
this . value = val ;
Original file line number Diff line number Diff line change @@ -80,3 +80,6 @@ p + h1 {
80
80
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC);
81
81
background-image : url (data:image/x-png, f9difSSFIIGFIFJD1f982FSDKAA9==);
82
82
}
83
+ # svg-data-uri {
84
+ background : transparent url ('data:image/svg+xml, <svg version="1.1"><g></g></svg>' );
85
+ }
Original file line number Diff line number Diff line change @@ -94,3 +94,7 @@ p + h1 {
94
94
kg9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC ) ;
95
95
background-image : url(data:image/x-png,f9difSSFIIGFIFJD1f982FSDKAA9 ==) ;
96
96
}
97
+
98
+ #svg-data-uri {
99
+ background : transparent url(' data:image/svg+xml, <svg version="1.1"><g></g></svg>' ) ;
100
+ }
You can’t perform that action at this time.
0 commit comments