1 <body contentEditable=
"true"><font face=
"Arial">There should only be one font tag.
</font></body>
2 <script src=
"../editing.js"></script>
5 testRunner
.dumpAsText();
6 var fontNode
= document
.getElementsByTagName("font")[0];
7 setSelectionCommand(fontNode
, 0, fontNode
, 0);
8 execExtendSelectionForwardBySentenceCommand();
9 document
.execCommand("fontname", false, "Courier");
10 var numFontNodes
= document
.getElementsByTagName("font").length
;
11 var result
= numFontNodes
== 1 ? "SUCCESS" : "FAILED";
12 document
.body
.innerHTML
+= "<p>" + result
+ "</p>";