зеркало из https://github.com/mozilla/gecko-dev.git
15 строки
502 B
HTML
15 строки
502 B
HTML
|
<!DOCTYPE html>
|
||
|
<meta charset=utf-8>
|
||
|
<title>Test for HTMLAreaElement's stringifier</title>
|
||
|
<script src="/resources/testharness.js"></script>
|
||
|
<script src="/resources/testharnessreport.js"></script>
|
||
|
<div id="log"></div>
|
||
|
<script>
|
||
|
test(function() {
|
||
|
var area = document.createElement("area");
|
||
|
area.href = "http://example.org/";
|
||
|
assert_equals(area.href, "http://example.org/");
|
||
|
assert_equals(String(area), "http://example.org/");
|
||
|
}, "Area elements should stringify to the href attribute");
|
||
|
</script>
|