bzbarsky%mit.edu 77898dd550 Adding regression tests
git-svn-id: svn://10.0.0.236/trunk@185344 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 22:24:28 +00:00

27 lines
562 B
HTML

<html>
<head>
<style>
div { color: red }
div::first-letter { color: green }
</style>
<script>
function doit() {
var parent = document.getElementById('a');
var kid = document.createElement("span");
kid.style.display="none";
parent.appendChild(kid);
parent = document.getElementById('b');
kid = document.createElement("span");
kid.style.display="none";
parent.insertBefore(kid, document.getElementById('x'));
}
</script>
</head>
<body onload="doit()">
There should be no red
<div id="a">
T</div>
<div id="b">
T <span id="x"></span></div>
</html>