gecko-dev/dom/html/test/test_embed_attributes_refle...

58 строки
1.1 KiB
HTML

<!DOCTYPE HTML>
<html>
<head>
<title>Test for HTMLEmbedElement attributes reflection</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="reflect.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
/** Test for HTMLEmbedElement attributes reflection **/
// .src (URL)
reflectURL({
element: document.createElement("embed"),
attribute: "src",
});
// .type (String)
reflectString({
element: document.createElement("embed"),
attribute: "type",
});
// .width (String)
reflectString({
element: document.createElement("embed"),
attribute: "width",
});
// .height (String)
reflectString({
element: document.createElement("embed"),
attribute: "height",
});
// .align (String)
reflectString({
element: document.createElement("embed"),
attribute: "align",
});
// .name (String)
reflectString({
element: document.createElement("embed"),
attribute: "name",
});
</script>
</pre>
</body>
</html>