Files
sousa-gecko/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/iframe-src-encoding.html
T
SharanRP eb4abd9afd Bug 2025557 [wpt PR 58680] - script: Use encoding-parse algorithm when handling iframe and Document URL attributes, a=testonly
Automatic update from web-platform-tests
Fix iframe URL encoding

Signed-off-by: SharanRP <z8903830@gmail.com>

--

wpt-commits: 4f6c34f8b56f0af701bbf8b02b3589fc3d0751a2
wpt-pr: 58680
2026-03-30 08:08:18 +00:00

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>