| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<title>Element['unknown']</title> |
| 5 |
<script src="../../../support/result0.js"></script> |
| 6 |
</head> |
| 7 |
<body> |
| 8 |
|
| 9 |
<div><p id="a" unknown="value-of-the-unknown-attribute"></p></div> |
| 10 |
|
| 11 |
<script type="text/javascript"> |
| 12 |
var a = document.getElementById ('a'); |
| 13 |
var unknown = a['unknown']; |
| 14 |
|
| 15 |
document.write ('<dl><dt><code><var>Element</var>["unknown"]</code></dt><dd>'); |
| 16 |
writeResult (a['unknown']); |
| 17 |
document.write ('</dd><dt><code><var>Element</var>.getAttribute ("unknown")</code><dd>'); |
| 18 |
writeResult (a.getAttribute ('unknown')); |
| 19 |
document.write ('</dd><dt><code><var>Element</var>.parentNode.innerHTML</code></dt><dd>'); |
| 20 |
document.write (htescape (a.parentNode.innerHTML)); |
| 21 |
document.write ('</dd></dl>'); |
| 22 |
</script> |
| 23 |
|
| 24 |
</body> |
| 25 |
</html> |