20 lines
511 B
HTML
20 lines
511 B
HTML
<!doctype html>
|
|
<title>Attributes on </br></title>
|
|
<style>
|
|
br { background:lime; width:10em; height:10em; display:block; content:""; }
|
|
.fail { background:red; }
|
|
</style>
|
|
There should be a green square and no red below: </br class=fail>
|
|
<script>
|
|
var result = false;
|
|
var elm = document.getElementsByTagName("br")[0];
|
|
if (elm) {
|
|
result = true;
|
|
if (elm.className == "fail")
|
|
result = false;
|
|
}
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
document.write(result ? "PASS" : "FAIL");
|
|
</script>
|