mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
partly import changes from tenfourfox:
- #565: implement nsASCIIMask from M1358297 (41b1fc937) - #565: M1358297 parts 3 and 4 (3fd15a87a) - #632: M1424915 M1354233 M1324114 M1343008 M1236277(just backbugs) M1328955 (d87db7e16) - #632: M1362498 M1397686 M136178 M1320252 M1355875 (82cb3b59e) - #632: M241788 M1271955 M1249352(p1) + additional local optimizations (438bdb726) - #632: M1249352 part 2 (2c61821e4) - #632: M1249352(remaining) M1358297(backbugs) M1369317(pp1,3,4) M1426996 (1eab6170b)
This commit is contained in:
@@ -5211,15 +5211,13 @@ HTMLInputElement::SanitizeValue(nsAString& aValue)
|
||||
case NS_FORM_INPUT_TEL:
|
||||
case NS_FORM_INPUT_PASSWORD:
|
||||
{
|
||||
char16_t crlf[] = { char16_t('\r'), char16_t('\n'), 0 };
|
||||
aValue.StripChars(crlf);
|
||||
aValue.StripCRLF();
|
||||
}
|
||||
break;
|
||||
case NS_FORM_INPUT_EMAIL:
|
||||
case NS_FORM_INPUT_URL:
|
||||
{
|
||||
char16_t crlf[] = { char16_t('\r'), char16_t('\n'), 0 };
|
||||
aValue.StripChars(crlf);
|
||||
aValue.StripCRLF();
|
||||
|
||||
aValue = nsContentUtils::TrimWhitespace<nsContentUtils::IsHTMLWhitespace>(aValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user