blob: 82ae844335e0eae01a79beb022cb3c2c2507ee5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<!DOCTYPE html>
<ol id="x" reversed>
<li>Three</li>
<li>Two</li>
</ol>
<script>
var l = document.getElementById("x");
var w = l.offsetWidth;
var li = document.createElement("li");
li.textContent = "One"
l.appendChild(li);
</script>
|