зеркало из https://github.com/mozilla/pjs.git
16 строки
437 B
HTML
16 строки
437 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<body>
|
||
|
<textarea id="t"></textarea>
|
||
|
<script>
|
||
|
document.getElementById("t").
|
||
|
appendChild(document.createTextNode("abcdefgh"));
|
||
|
document.getElementById("t").appendChild(document.createTextNode("ijkl"));
|
||
|
// Flush reflow
|
||
|
document.body.offsetWidth;
|
||
|
document.getElementById("t").
|
||
|
removeChild(document.getElementById("t").lastChild);
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|