Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
const doc = document.implementation.createHTMLDocument('');
const img = doc.createElement('img');
img.setAttribute('src', '/test');
doc.body.appendChild(img);
assert_equals(img.src, '/test');
}, 'HTMLImageElement.src should return the string from the attribute in about:blank documents.');
</script>