2009-03-12 17:17:14 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<bindings xmlns="http://www.mozilla.org/xbl">
|
|
|
|
<binding id="a">
|
|
|
|
<content>
|
|
|
|
<html:span xmlns:html="http://www.w3.org/1999/xhtml"
|
|
|
|
id="hasBefore"><children/></html:span>
|
|
|
|
</content>
|
|
|
|
</binding>
|
|
|
|
</bindings>
|
|
|
|
<style>
|
|
|
|
#hasBefore::before { content: "x"; }
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
function doTest() {
|
|
|
|
var l = document.getElementById("l");
|
|
|
|
l.parentNode.insertBefore(document.createTextNode("y"), l);
|
|
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body onload="doTest()">
|
2016-01-05 14:20:21 +03:00
|
|
|
<div style="-moz-binding: url(#a); font-size: 300%;"><span id="l"></span></div>
|
2009-03-12 17:17:14 +03:00
|
|
|
</body>
|
|
|
|
</html>
|