mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
df51955670
--HG-- extra : rebase_source : 9885ac8a59ade08ef02fc86b8a3c65169b72c92c
30 lines
486 B
HTML
30 lines
486 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<script type="text/javascript">
|
|
|
|
function boom()
|
|
{
|
|
var st = document.getElementById("s").firstChild
|
|
|
|
var range = document.createRange();
|
|
range.setStart(document.documentElement, 0);
|
|
range.setEnd(st, 1);
|
|
range.deleteContents()
|
|
|
|
try { range.surroundContents(st); } catch(e) { }
|
|
}
|
|
|
|
</script>
|
|
|
|
<style type="text/css">
|
|
|
|
div:first-letter { float: left; }
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body onload="boom();"><div><span id="s">Foo</span></div></body>
|
|
|
|
</html>
|