Sign in
webkit
/
WebKit
/
437f2c5aff768557a26b18335a7cb15e0dbc5120
/
.
/
JSTests
/
es6
/
String.prototype_HTML_methods_quotes_in_arguments_are_escaped.js
blob: 802570435f8cd1a01a4551b442d62ac7ea9a754a [
file
] [
log
] [
blame
]
function
test
()
{
var
i
,
names
=
[
"anchor"
,
"fontcolor"
,
"fontsize"
,
"link"
];
for
(
i
=
0
;
i
<
names
.
length
;
i
++)
{
if
(
""
[
names
[
i
]](
'"'
)
!==
""
[
names
[
i
]](
'&'
+
'quot;'
))
{
return
false
;
}
}
return
true
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);