summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 01:15:10 +0000
committerarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 01:15:10 +0000
commit266bc72a27ab755abfcad858d702c891ee2c9155 (patch)
tree4c1e488c7169d9c05325e9b9172ea87cbd93fae7 /chrome
parent2dd957b9cded592576e7d9ac508e1d668841d0a3 (diff)
downloadchromium_src-266bc72a27ab755abfcad858d702c891ee2c9155.zip
chromium_src-266bc72a27ab755abfcad858d702c891ee2c9155.tar.gz
chromium_src-266bc72a27ab755abfcad858d702c891ee2c9155.tar.bz2
Make the caption text for the "I understand" checkboxes in malware interstitial
pages into an HTML label tag, to make it clickable and more friendly to screen readers. TEST= Navigate to ianfette.org and click on the text "I understand that visiting this site may harm my computer". Checkbox should toggle. BUG= 12714 Original patch by chromium@willhirsch.co.uk Original review: http://codereview.chromium.org/115815 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17050 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/resources/safe_browsing_malware_block.html2
-rw-r--r--chrome/browser/resources/safe_browsing_multiple_threat_block.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/resources/safe_browsing_malware_block.html b/chrome/browser/resources/safe_browsing_malware_block.html
index cc13715..0deaaf1 100644
--- a/chrome/browser/resources/safe_browsing_malware_block.html
+++ b/chrome/browser/resources/safe_browsing_malware_block.html
@@ -91,7 +91,7 @@ input {
<div class="main"><a href="" jscontent="description3" onclick="sendCommand('learnMore'); return false;" onmousedown="return false;"></a></div>
<div class="main">
<form class="submission">
- <input name="checky" type="checkbox" onclick="agreed(this.form)">&nbsp;<span jscontent="confirm_text"></span>
+ <input name="checky" id="checky" type="checkbox" onclick="agreed(this.form)">&nbsp;<label for="checky" jscontent="confirm_text"></label>
<input type="button" name="continue_button" jsvalues="value:continue_button" disabled="true" onclick="sendCommand('proceed')"><br>
<input type="button" name="back_button" jsvalues="value:back_button" onclick="sendCommand('takeMeBack')">
</form>
diff --git a/chrome/browser/resources/safe_browsing_multiple_threat_block.html b/chrome/browser/resources/safe_browsing_multiple_threat_block.html
index 5376529..8ba9486 100644
--- a/chrome/browser/resources/safe_browsing_multiple_threat_block.html
+++ b/chrome/browser/resources/safe_browsing_multiple_threat_block.html
@@ -131,7 +131,7 @@ function takeMeBack() {
<div class="main"><a href="" jscontent="description3" onclick="learnMore(); return false;" onmousedown="return false;"></a></div>
<div class="main">
<form class="submission">
- <input name="checky" type="checkbox" onclick="agreed(this.form)">&nbsp;<span jscontent="confirm_text"></span>
+ <input name="checky" id="checky" type="checkbox" onclick="agreed(this.form)">&nbsp;<label for="checky" jscontent="confirm_text"></label>
<input type="button" name="continue_button" jsvalues="value:continue_button" disabled="true" onclick="proceed();"><br>
<input type="button" name="back_button" jsvalues="value:back_button" onclick="takeMeBack()">
</form>