mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
21 lines
479 B
HTML
21 lines
479 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<script>
|
||
|
|
||
|
function boom()
|
||
|
{
|
||
|
var outer = document.createElementNS("http://www.w3.org/1999/xhtml", "div");
|
||
|
outer.setAttribute("dir", "auto");
|
||
|
var inner = document.createElementNS("http://www.w3.org/1999/xhtml", "div");
|
||
|
inner.appendChild(document.createTextNode("A"));
|
||
|
inner.appendChild(document.createTextNode("B"));
|
||
|
outer.appendChild(inner);
|
||
|
inner.setAttribute("dir", "ltr");
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="boom();"></body>
|
||
|
</html>
|