@@ -110,7 +110,7 @@ export function absoluteToStylesheet(
110
110
) ;
111
111
}
112
112
113
- const SRCSET_NOT_SPACES = / ^ [ ^ \t \n \r \u000c ] + / ; // Don't use \s, to avoid matching non-breaking space
113
+ const SRCSET_NOT_SPACES = / ^ [ ^ \t \n \r \u000c ] + / ; // Don't use \s, to avoid matching non-breaking space
114
114
const SRCSET_COMMAS_OR_SPACES = / ^ [ , \t \n \r \u000c ] + / ;
115
115
function getAbsoluteSrcsetString ( doc : Document , attributeValue : string ) {
116
116
/*
@@ -129,7 +129,7 @@ function getAbsoluteSrcsetString(doc: Document, attributeValue: string) {
129
129
130
130
function collectCharacters ( regEx : RegExp ) {
131
131
var chars ,
132
- match = regEx . exec ( attributeValue . substring ( pos ) ) ;
132
+ match = regEx . exec ( attributeValue . substring ( pos ) ) ;
133
133
if ( match ) {
134
134
chars = match [ 0 ] ;
135
135
pos += chars . length ;
@@ -148,13 +148,13 @@ function getAbsoluteSrcsetString(doc: Document, attributeValue: string) {
148
148
let url = collectCharacters ( SRCSET_NOT_SPACES ) ;
149
149
if ( url . slice ( - 1 ) === ',' ) {
150
150
// aside: according to spec more than one comma at the end is a parse error, but we ignore that
151
- url = absoluteToDoc ( doc , url . substring ( 0 , url . length - 1 ) )
151
+ url = absoluteToDoc ( doc , url . substring ( 0 , url . length - 1 ) ) ;
152
152
// the trailing comma splits the srcset, so the interpretion is that
153
153
// another url will follow, and the descriptor is empty
154
154
output . push ( url ) ;
155
155
} else {
156
156
let descriptorsStr = '' ;
157
- url = absoluteToDoc ( doc , url )
157
+ url = absoluteToDoc ( doc , url ) ;
158
158
let inParens = false ;
159
159
while ( true ) {
160
160
let c = attributeValue . charAt ( pos ) ;
@@ -165,7 +165,7 @@ function getAbsoluteSrcsetString(doc: Document, attributeValue: string) {
165
165
if ( c === ',' ) {
166
166
pos += 1 ;
167
167
output . push ( ( url + descriptorsStr ) . trim ( ) ) ;
168
- break ; // parse the next url
168
+ break ; // parse the next url
169
169
} else if ( c === '(' ) {
170
170
inParens = true ;
171
171
}
@@ -863,9 +863,12 @@ function snapshot(
863
863
week : true ,
864
864
textarea : true ,
865
865
select : true ,
866
+ password : true ,
866
867
}
867
868
: maskAllInputs === false
868
- ? { }
869
+ ? {
870
+ password : true ,
871
+ }
869
872
: maskAllInputs ;
870
873
const slimDOMOptions : SlimDOMOptions =
871
874
slimDOM === true || slimDOM === 'all'
0 commit comments