Automatic update from web-platform-tests Fix iframe URL encoding Signed-off-by: SharanRP <z8903830@gmail.com> -- wpt-commits: 4f6c34f8b56f0af701bbf8b02b3589fc3d0751a2 wpt-pr: 58680
20 lines
682 B
HTML
20 lines
682 B
HTML
<!DOCTYPE html>
|
|
<meta charset=windows-1252>
|
|
<title>iframe src URL is parsed using document encoding</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<body>
|
|
<script>
|
|
async_test(t => {
|
|
let frame = document.createElement('iframe');
|
|
frame.src = "resources/frame-encoding.html?\u00DF";
|
|
document.body.appendChild(frame);
|
|
frame.onload = t.step_func(() => {
|
|
assert_equals(frame.contentWindow.location.search, "?%DF");
|
|
assert_equals(frame.contentWindow.test.textContent, "?%DF");
|
|
assert_equals(frame.src, new URL("resources/frame-encoding.html?%DF", location.href).href);
|
|
t.done();
|
|
});
|
|
});
|
|
</script>
|