Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 4 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/embedded-content/the-img-element/update-the-image-data/fail-to-resolve.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>img update the image data: fail to resolve URL</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<img src="//[">
<img srcset="//[">
<img srcset="//[" src="/images/red.png">
<img srcset="//[, /images/red.png">
<script>
setup({explicit_done: true});
var expected = '//[';
onload = function() {
[].forEach.call(document.images, function(img) {
test(function() {
assert_equals(img.currentSrc, expected);
}, img.outerHTML);
});
done();
};
</script>