Changeset 2bff0d6b


Ignore:
Timestamp:
Mar 2, 2012 10:32:45 PM (8 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
15e1828, 366d79dd
Parents:
1aa24a3
Message:

HTML validation fixes

Files:
13 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r1aa24a3 r2bff0d6b  
    15551555        out.write("<tr><td>");
    15561556        out.write(_("I2CP options"));
    1557         out.write(": <td><textarea name=\"i2cpOpts\" cols=\"60\" rows=\"1\" style=\"whitespace:nowrap\" spellcheck=\"false\" >"
     1557        out.write(": <td><textarea name=\"i2cpOpts\" cols=\"60\" rows=\"1\" wrap=\"off\" spellcheck=\"false\" >"
    15581558                  + opts.toString() + "</textarea><br>\n" +
    15591559
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigClientsHelper.java

    r1aa24a3 r2bff0d6b  
    5353            (mode == 1 && (!disabled) && (!ssl)) ||
    5454            (mode == 2 && (!disabled) && ssl))
    55             return "checked=\"true\"";
     55            return "checked=\"checked\"";
    5656        return "";
    5757    }
     
    6161        boolean enabled =  _context.getBooleanProperty(PROP_AUTH);
    6262        if (enabled)
    63             return "checked=\"true\"";
     63            return "checked=\"checked\"";
    6464        return "";
    6565    }
     
    254254        buf.append("</td><td align=\"center\" width=\"10%\"><input type=\"checkbox\" class=\"optbox\" name=\"").append(index).append(".enabled\" value=\"true\" ");
    255255        if (enabled) {
    256             buf.append("checked=\"true\" ");
     256            buf.append("checked=\"checked\" ");
    257257            if (ro)
    258                 buf.append("disabled=\"true\" ");
     258                buf.append("disabled=\"disabled\" ");
    259259        }
    260260        buf.append("></td><td align=\"center\" width=\"15%\">");
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHelper.java

    r1aa24a3 r2bff0d6b  
    8181            buf.append("<option value=\"").append(l).append('\"');
    8282            if (l.equals(cur))
    83                 buf.append(" selected=\"true\"");
     83                buf.append(" selected=\"selected\"");
    8484            buf.append('>').append(_(l)).append("</option>\n");
    8585        }       
     
    122122        StringBuilder buf = new StringBuilder(65536);
    123123        buf.append("<select name=\"newlogclass\">\n" +
    124                    "<option value=\"\" selected=\"true\">")
     124                   "<option value=\"\" selected=\"selected\">")
    125125           .append(_("Select a class to add"))
    126126           .append("</option>\n");
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigNetHelper.java

    r1aa24a3 r2bff0d6b  
    2121    public final static String PROP_I2NP_NTCP_AUTO_PORT = "i2np.ntcp.autoport";
    2222    public final static String PROP_I2NP_NTCP_AUTO_IP = "i2np.ntcp.autoip";
    23     private final static String CHECKED = " checked=\"true\" ";
    24     private final static String DISABLED = " disabled=\"true\" ";
     23    private final static String CHECKED = " checked=\"checked\" ";
     24    private final static String DISABLED = " disabled=\"disabled\" ";
    2525
    2626    public String getUdphostname() {
     
    251251            buf.append("<option style=\"text-align: right;\" value=\"").append(val).append("\" ");
    252252            if (pct == val) {
    253                 buf.append("selected=\"true\" ");
     253                buf.append("selected=\"selected\" ");
    254254                found = true;
    255255            }
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigReseedHelper.java

    r1aa24a3 r2bff0d6b  
    5757            (mode == 1 && (!disabled) && required) ||
    5858            (mode == 2 && disabled))
    59             return "checked=\"true\"";
     59            return "checked=\"checked\"";
    6060        return "";
    6161    }
     
    8383        boolean enabled =  _context.getBooleanProperty(prop);
    8484        if (enabled)
    85             return "checked=\"true\"";
     85            return "checked=\"checked\"";
    8686        return "";
    8787    }
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigTunnelsHelper.java

    r1aa24a3 r2bff0d6b  
    173173            buf.append("<tr><td align=\"right\" class=\"mediumtags\">" + _("Inbound options") + ":</td>\n" +
    174174                       "<td colspan=\"2\" align=\"center\"><input name=\"").append(index);
    175             buf.append(".inboundOptions\" type=\"text\" size=\"32\" disabled=\"true\" " +
     175            buf.append(".inboundOptions\" type=\"text\" size=\"32\" disabled=\"disabled\" " +
    176176                       "value=\"");
    177177            for (Iterator iter = props.keySet().iterator(); iter.hasNext(); ) {
     
    186186            buf.append("<tr><td align=\"right\" class=\"mediumtags\">" + _("Outbound options") + ":</td>\n" +
    187187                       "<td colspan=\"2\" align=\"center\"><input name=\"").append(index);
    188             buf.append(".outboundOptions\" type=\"text\" size=\"32\" disabled=\"true\" " +
     188            buf.append(".outboundOptions\" type=\"text\" size=\"32\" disabled=\"disabled\" " +
    189189                       "value=\"");
    190190            for (Iterator iter = props.keySet().iterator(); iter.hasNext(); ) {
     
    206206            buf.append("<option value=\"").append(i).append("\" ");
    207207            if (i == now)
    208                 buf.append("selected=\"true\" ");
     208                buf.append("selected=\"selected\" ");
    209209            buf.append(">").append(ngettext(DUMMY1 + name, DUMMY2 + name + 's', i));
    210210            buf.append("</option>\n");
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigUIHelper.java

    r1aa24a3 r2bff0d6b  
    1515            buf.append("<input type=\"radio\" class=\"optbox\" name=\"theme\" ");
    1616            if (theme.equals(current))
    17                 buf.append("checked=\"true\" ");
     17                buf.append("checked=\"checked\" ");
    1818            buf.append("value=\"").append(theme).append("\">").append(_(theme)).append("<br>\n");
    1919        }
     
    7474            buf.append("<input type=\"radio\" class=\"optbox\" name=\"lang\" ");
    7575            if (langs[i].equals(current))
    76                 buf.append("checked=\"true\" ");
     76                buf.append("checked=\"checked\" ");
    7777            buf.append("value=\"").append(langs[i]).append("\">")
    7878               .append("<img height=\"11\" width=\"16\" alt=\"\" src=\"/flags.jsp?c=").append(flags[i]).append("\"> ")
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigUpdateHelper.java

    r1aa24a3 r2bff0d6b  
    7676        String proxy = _context.getProperty(ConfigUpdateHandler.PROP_SHOULD_PROXY, ConfigUpdateHandler.DEFAULT_SHOULD_PROXY);
    7777        if (Boolean.valueOf(proxy).booleanValue())
    78             return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateThroughProxy\" checked=\"true\" >";
     78            return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateThroughProxy\" checked=\"checked\" >";
    7979        else
    8080            return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateThroughProxy\" >";
     
    8484        String foo = _context.getProperty(ConfigUpdateHandler.PROP_UPDATE_UNSIGNED);
    8585        if (Boolean.valueOf(foo).booleanValue())
    86             return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" checked=\"true\" >";
     86            return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" checked=\"checked\" >";
    8787        else
    8888            return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" >";
     
    107107            buf.append("<option value=\"").append(PERIODS[i]);
    108108            if (PERIODS[i] == ms)
    109                 buf.append("\" selected=\"true");
     109                buf.append("\" selected=\"selected");
    110110           
    111111            if (PERIODS[i] == -1)
     
    129129        buf.append("<option value=\"notify\"");
    130130        if ("notify".equals(policy) || _dontInstall)
    131             buf.append(" selected=\"true\"");
     131            buf.append(" selected=\"selected\"");
    132132        buf.append('>').append(_("Notify only")).append("</option>");
    133133
    134134        buf.append("<option value=\"download\"");
    135135        if (_dontInstall)
    136             buf.append(" disabled=\"true\"");
     136            buf.append(" disabled=\"disabled\"");
    137137        else if ("download".equals(policy))
    138             buf.append(" selected=\"true\"");
     138            buf.append(" selected=\"selected\"");
    139139        buf.append('>').append(_("Download and verify only")).append("</option>");
    140140       
     
    142142            buf.append("<option value=\"install\"");
    143143            if (_dontInstall)
    144                 buf.append(" disabled=\"true\"");
     144                buf.append(" disabled=\"disabled\"");
    145145            else if ("install".equals(policy))
    146                 buf.append(" selected=\"true\"");
     146                buf.append(" selected=\"selected\"");
    147147            buf.append('>').append(_("Download, verify, and restart")).append("</option>");
    148148        }
  • apps/routerconsole/jsp/configreseed.jsp

    r1aa24a3 r2bff0d6b  
    4242<b><%=intl._("Use non-SSL only")%></b></td></tr>
    4343<tr><td class="mediumtags" align="right"><b><%=intl._("Reseed URLs")%>:</b></td>
    44 <td><textarea name="reseedURL" wrap="off" spellcheck="false"><jsp:getProperty name="reseedHelper" property="reseedURL" /></textarea></td></tr>
     44<td><textarea wrap="off" name="reseedURL" cols="60" rows="7" spellcheck="false"><jsp:getProperty name="reseedHelper" property="reseedURL" /></textarea></td></tr>
    4545
    4646<tr><td class="mediumtags" align="right"><b><%=intl._("Enable HTTP Proxy?")%></b></td>
  • apps/routerconsole/jsp/configupdate.jsp

    r1aa24a3 r2bff0d6b  
    5757    <% if (updatehelper.canInstall()) { %>
    5858        <tr><td class= "mediumtags" align="right"><b><%=intl._("Update URLs")%>:</b></td>
    59           <td><textarea name="updateURL" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea></td>
     59          <td><textarea cols="60" rows="6" name="updateURL" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea></td>
    6060        </tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Trusted keys")%>:</b></td>
    61           <td><textarea name="trustedKeys" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea></td>
     61          <td><textarea cols="60" rows="6" name="trustedKeys" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea></td>
    6262        </tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Update with unsigned development builds?")%></b></td>
    6363          <td><jsp:getProperty name="updatehelper" property="updateUnsigned" /></td>
  • apps/susidns/src/jsp/addressbook.jsp

    r1aa24a3 r2bff0d6b  
    159159<span class="addrhlpr"><a href="details?h=${addr.name}" title="<%=intl._("More information on this entry")%>"><%=intl._("details")%></a></span>
    160160</td>
    161 <td class="destinations"><textarea rows="1" style="height:3em;whitespace:nowrap" cols="40" readonly="readonly" name="dest_${addr.name}" >${addr.destination}</textarea></td>
     161<td class="destinations"><textarea rows="1" style="height:3em;" wrap="off" cols="40" readonly="readonly" name="dest_${addr.name}" >${addr.destination}</textarea></td>
    162162</tr>
    163163</c:forEach>
     
    191191<b><%=intl._("Host Name")%></b></td><td><input type="text" name="hostname" value="${book.hostname}" size="54">
    192192</td></tr><tr><td>
    193 <b><%=intl._("Destination")%></b></td><td><textarea name="destination" rows="1" style="height:3em;whitespace:nowrap" cols="70" spellcheck="false">${book.destination}</textarea>
     193<b><%=intl._("Destination")%></b></td><td><textarea name="destination" rows="1" style="height:3em" wrap="off" cols="70" spellcheck="false">${book.destination}</textarea>
    194194</td></tr></table>
    195195<p class="buttons">
  • apps/susidns/src/jsp/details.jsp

    r1aa24a3 r2bff0d6b  
    123123</tr><tr class="list${book.trClass}">
    124124<td><%=intl._("Destination")%></td>
    125 <td class="destinations"><textarea rows="1" style="height:3em;whitespace:nowrap" cols="70" readonly="readonly" ><%=addr.getDestination()%></textarea></td>
     125<td class="destinations"><textarea rows="1" style="height:3em;" wrap="off" cols="70" readonly="readonly" ><%=addr.getDestination()%></textarea></td>
    126126</tr></table>
    127127</div>
  • router/java/src/net/i2p/router/Blocklist.java

    r1aa24a3 r2bff0d6b  
    782782        singles.addAll(_singleIPBlocklist);
    783783        if (!singles.isEmpty()) {
    784             out.write("<table><tr><th align=center colspan=2><b>");
     784            out.write("<table><tr><th align=\"center\" colspan=\"2\"><b>");
    785785            out.write(_("IPs Banned Until Restart"));
    786786            out.write("</b></td></tr>");
     
    790790                 if (ip < 0)
    791791                     continue;
    792                  out.write("<tr><td align=center width=50%>");
     792                 out.write("<tr><td align=\"center\" width=\"50%\">");
    793793                 out.write(toStr(ip));
    794                  out.write("</td><td width=50%>&nbsp;</td></tr>\n");
     794                 out.write("</td><td width=\"50%\">&nbsp;</td></tr>\n");
    795795            }
    796796            // then 128 - 255
     
    799799                 if (ip >= 0)
    800800                     break;
    801                  out.write("<tr><td align=center width=50%>");
     801                 out.write("<tr><td align=\"center\" width=\"50%\">");
    802802                 out.write(toStr(ip));
    803                  out.write("</td><td width=50%>&nbsp;</td></tr>\n");
     803                 out.write("</td><td width=\"50%\">&nbsp;</td></tr>\n");
    804804            }
    805805            out.write("</table>");
    806806        }
    807807        if (_blocklistSize > 0) {
    808             out.write("<table><tr><th align=center colspan=2><b>");
     808            out.write("<table><tr><th align=\"center\" colspan=\"2\"><b>");
    809809            out.write(_("IPs Permanently Banned"));
    810             out.write("</b></th></tr><tr><td align=center width=50%><b>");
     810            out.write("</b></th></tr><tr><td align=\"center\" width=\"50%\"><b>");
    811811            out.write(_("From"));
    812             out.write("</b></td><td align=center width=50%><b>");
     812            out.write("</b></td><td align=\"center\" width=\"50%\"><b>");
    813813            out.write(_("To"));
    814814            out.write("</b></td></tr>");
     
    820820                 if (from < 0)
    821821                     continue;
    822                  out.write("<tr><td align=center width=50%>"); out.write(toStr(from)); out.write("</td><td align=center width=50%>");
     822                 out.write("<tr><td align=\"center\" width=\"50%\">"); out.write(toStr(from)); out.write("</td><td align=\"center\" width=\"50%\">");
    823823                 int to = getTo(_blocklist[i]);
    824824                 if (to != from) {
     
    833833                 if (from >= 0)
    834834                     break;
    835                  out.write("<tr><td align=center width=50%>"); out.write(toStr(from)); out.write("</td><td align=center width=50%>");
     835                 out.write("<tr><td align=\"center\" width=\"50%\">"); out.write(toStr(from)); out.write("</td><td align=\"center\" width=\"50%\">");
    836836                 int to = getTo(_blocklist[i]);
    837837                 if (to != from) {
Note: See TracChangeset for help on using the changeset viewer.