function runTest()
{
    FBTest.sysout("issue5058.START");

    FBTest.openNewTab(basePath + "html/5058/issue5058.html", function(win)
    {
        FBTest.openFirebug();
        FBTest.selectPanel("html");

        FBTest.selectElementInHtmlPanel("inspectMe", function(node)
        {
            FBTest.clickToolbarButton(null, "fbToggleHTMLEditing");
            var panelNode = FBTest.getPanel("html").panelNode;
            var textArea = panelNode.querySelector("textarea");

            var expected = "<div id=\"inspectMe\">Inspect Me!</div>";
            FBTest.compare(expected, textArea.value,
                "The markup must be displayed now");

            FBTest.testDone("issue5058.DONE");
        });
    });
}

@@ -343,24 +343,25 @@
 LEditing%22);%0A
+%0A
             
@@ -369,20 +369,16 @@
 ar panel
-Node
  = FBTes
@@ -399,18 +399,8 @@
 ml%22)
-.panelNode
 ;%0A  
@@ -417,54 +417,40 @@
 var 
-textArea = panelNode.querySelector(%22textarea%22)
+editor = panel.localEditors.html
 ;%0A%0A 
@@ -559,39 +559,26 @@
 ed, 
-textArea.value,%0A               
+editor.getValue(),
  %22Th

Fix html/5058 FBTest