fix case where html text widget is busted

This commit is contained in:
alecf%netscape.com 1999-09-11 10:45:25 +00:00
Родитель da4b0ea78b
Коммит d15639ecb7
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -22,7 +22,13 @@ var RDF = Components.classes['component://netscape/rdf/rdf-service'].getService(
RDF = RDF.QueryInterface(Components.interfaces.nsIRDFService);
function loadUrl() {
var url = document.getElementById("url").value;
var urlwidget = document.getElementById("url");
if (!urlwidget)
url = "http://www.mozillazine.org/";
else
url = urlwidget.value;
dump("Loading " + url + " into " + parent.window.frames["srcdoc"] +"\n");
var win = window.frames["srcdoc"];
@ -39,7 +45,7 @@ function refreshTree() {
var treeframe = window.frames["treeframe"];
var tree = treeframe.document.getElementById("dataSourceTree");
tree.childNodes[4].setAttribute("id","dom:/");
tree.setAttribute("ref","NC:DOMRoot");
}
function onSrcLoaded() {