blob: 0f0e0bce2501598e0c119d0bd0a1825ec8937e84 [file] [log] [blame]
<!doctype HTML>
<style>
p:first-letter {
float: left;
color: green;
}
</style>
<p id="replace">Lorem ipsum</p>
<script>
document.body.offsetTop; // Force layout.
var el = document.getElementById("replace");
el.firstChild.data = el.firstChild.data.replace(/[aeiu]/g, "o");
</script>