related to #75 mask password input by default
This commit is contained in:
@@ -148,13 +148,13 @@ function getAbsoluteSrcsetString(doc: Document, attributeValue: string) {
|
|||||||
let url = collectCharacters(SRCSET_NOT_SPACES);
|
let url = collectCharacters(SRCSET_NOT_SPACES);
|
||||||
if (url.slice(-1) === ',') {
|
if (url.slice(-1) === ',') {
|
||||||
// aside: according to spec more than one comma at the end is a parse error, but we ignore that
|
// aside: according to spec more than one comma at the end is a parse error, but we ignore that
|
||||||
url = absoluteToDoc(doc, url.substring(0, url.length - 1))
|
url = absoluteToDoc(doc, url.substring(0, url.length - 1));
|
||||||
// the trailing comma splits the srcset, so the interpretion is that
|
// the trailing comma splits the srcset, so the interpretion is that
|
||||||
// another url will follow, and the descriptor is empty
|
// another url will follow, and the descriptor is empty
|
||||||
output.push(url);
|
output.push(url);
|
||||||
} else {
|
} else {
|
||||||
let descriptorsStr = '';
|
let descriptorsStr = '';
|
||||||
url = absoluteToDoc(doc, url)
|
url = absoluteToDoc(doc, url);
|
||||||
let inParens = false;
|
let inParens = false;
|
||||||
while (true) {
|
while (true) {
|
||||||
let c = attributeValue.charAt(pos);
|
let c = attributeValue.charAt(pos);
|
||||||
@@ -863,9 +863,12 @@ function snapshot(
|
|||||||
week: true,
|
week: true,
|
||||||
textarea: true,
|
textarea: true,
|
||||||
select: true,
|
select: true,
|
||||||
|
password: true,
|
||||||
}
|
}
|
||||||
: maskAllInputs === false
|
: maskAllInputs === false
|
||||||
? {}
|
? {
|
||||||
|
password: true,
|
||||||
|
}
|
||||||
: maskAllInputs;
|
: maskAllInputs;
|
||||||
const slimDOMOptions: SlimDOMOptions =
|
const slimDOMOptions: SlimDOMOptions =
|
||||||
slimDOM === true || slimDOM === 'all'
|
slimDOM === true || slimDOM === 'all'
|
||||||
|
|||||||
Reference in New Issue
Block a user