Fixing well-formedness errors reported by expat...

This commit is contained in:
nisheeth%netscape.com 1999-04-07 02:26:53 +00:00
parent 609f21c756
commit bead591b4b
5 changed files with 18 additions and 18 deletions

View File

@ -80,7 +80,7 @@
// Get current time.
var now = ( new Date() ).getTime();
// If interval hasn't elapsed, ignore it.
if ( now - lastUpdate < interval && eval(bytes) < eval(max) ) {
if ( now - lastUpdate &lt; interval &amp;&amp; eval(bytes) &lt; eval(max) ) {
return;
}
@ -148,7 +148,7 @@
Location:
</html:td>
<html:td align="left">
<html:input id="dialog.location" readonly style="background-color:lightgray;width:300px;"/>
<html:input id="dialog.location" readonly="" style="background-color:lightgray;width:300px;"/>
</html:td>
</html:tr>
@ -157,7 +157,7 @@
Saving:
</html:td>
<html:td align="left">
<html:input id="dialog.fileName" readonly value="" style="background-color:lightgray;width:300px;"/>
<html:input id="dialog.fileName" readonly="" value="" style="background-color:lightgray;width:300px;"/>
</html:td>
</html:tr>
@ -201,4 +201,4 @@
</html:table>
</xul:window>
</window>

View File

@ -215,7 +215,7 @@
dump("FindBookmarkShortcut: in='" + document.getElementById('urlbar').value + "' out='" + shortcutURL + "'\n");
if ((shortcutURL != null) && (shortcutURL != ""))
if ((shortcutURL != null) &amp;&amp; (shortcutURL != ""))
{
document.getElementById('urlbar').value = shortcutURL;
}
@ -658,7 +658,7 @@
}
function onStopBinding() {
bindCount--;
if ( bindCount < 0 ) {
if ( bindCount &lt; 0 ) {
// Something unusual occurred (stop/back?).
bindCount = 0;
}
@ -675,7 +675,7 @@
function onProgress() {
var throbber = document.getElementById("Browser:Throbber");
var meter = document.getElementById("Browser:LoadingProgress");
if ( throbber && meter ) {
if ( throbber &amp;&amp; meter ) {
var busy = throbber.getAttribute("busy");
if ( busy == "true" ) {
mode = "undetermined";

View File

@ -67,7 +67,7 @@
}
function onTyping( key ) {
if ( key == 13 && dialog.enabled ) {
if ( key == 13 &amp;&amp; dialog.enabled ) {
ok();
} else {
if ( dialog.enabled ) {
@ -93,7 +93,7 @@
URL:
</html:td>
<html:td align="left">
<html:input id="dialog.location" readonly style="background-color:lightgray;width:300px;"/>
<html:input id="dialog.location" readonly="" style="background-color:lightgray;width:300px;"/>
</html:td>
</html:tr>
@ -102,7 +102,7 @@
content-type:
</html:td>
<html:td>
<html:input id="dialog.contentType" readonly style="background-color:lightgray;width:300px;"/>
<html:input id="dialog.contentType" readonly="" style="background-color:lightgray;width:300px;"/>
</html:td>
</html:tr>
@ -117,10 +117,10 @@
<html:tr>
<html:td align="center" colspan="2">
<html:button id="dialog.ok" onclick="ok()" disabled>OK</html:button>
<html:button onclick="cancel()" disabled>Cancel</html:button>
<html:button id="dialog.ok" onclick="ok()" disabled="">OK</html:button>
<html:button onclick="cancel()" disabled="">Cancel</html:button>
</html:td>
</html:tr>
</html:table>
</xul:window>
</window>

View File

@ -27,20 +27,20 @@
<broadcaster id="Browser:LoadingProgress"/>
<html:center>
<html:table border cols=3 width="99%" style="color-background:rgb(192,192,192);">
<html:table border="" cols="3" width="99%" style="color-background:rgb(192,192,192);">
<html:tr>
<html:td width="3%" nowrap style="border: 1px inset rgb(192,192,192);">
<html:td width="3%" nowrap="" style="border: 1px inset rgb(192,192,192);">
<html:button onclick="kickProgressMeter()" height="12">
X
</html:button>
</html:td>
<html:td width="15%" nowrap style="border: 1px inset rgb(192,192,192);">
<html:td width="15%" nowrap="" style="border: 1px inset rgb(192,192,192);">
<progressmeter id="meter" mode="normal" value="61">
<observes element="Browser:LoadingProgress" attribute="value" />
<observes element="Browser:LoadingProgress" attribute="mode" />
</progressmeter>
</html:td>
<html:td width="82%" nowrap style="border: 1px inset rgb(192,192,192);">
<html:td width="82%" nowrap="" style="border: 1px inset rgb(192,192,192);">
Document: Done (even a stopped clock is right twice a day)
</html:td>
</html:tr>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<?xml-stylesheet href="xul.css" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
<xul:window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script>