mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
18 lines
347 B
HTML
18 lines
347 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<style>
|
||
|
div { color: green; }
|
||
|
div:empty { color: red; }
|
||
|
</style>
|
||
|
<script>
|
||
|
window.onload = function () {
|
||
|
document.getElementById("x").appendChild(document.createTextNode("This should be green"));
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="x"></div>
|
||
|
</body>
|
||
|
</html>
|