From fc19cad60810684d6669ac55eaece2d96500f82a Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 18 Jul 2014 13:59:37 -0700 Subject: [PATCH 1/3] Use autocomplete="off" in buttons plugin docs examples Refs #13875. --- docs/_includes/js/buttons.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/_includes/js/buttons.html b/docs/_includes/js/buttons.html index ee5b3d71d2..6d812e70a3 100644 --- a/docs/_includes/js/buttons.html +++ b/docs/_includes/js/buttons.html @@ -44,26 +44,26 @@
{% highlight html %}
{% endhighlight %} @@ -77,26 +77,26 @@
{% highlight html %}
{% endhighlight %} From 031cb969d7d11e3f64bea93009be3db365bfbf1b Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 18 Jul 2014 14:15:47 -0700 Subject: [PATCH 2/3] Have HTML5 validator ignore `autocomplete="off"` on input[type="checkbox"] Not clear from the spec whether this is invalid per se. But it is the current best known workaround for Firefox's unusual behavior. --- Gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index dd706a8aae..da5b743a0f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -340,7 +340,8 @@ module.exports = function (grunt) { reset: true, relaxerror: [ 'Bad value X-UA-Compatible for attribute http-equiv on element meta.', - 'Element img is missing required attribute src.' + 'Element img is missing required attribute src.', + 'Attribute autocomplete not allowed on element input at this point.' ] }, files: { From db352bcc94287bcef015752c059b31dd1d8ee4c3 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 18 Jul 2014 14:01:33 -0700 Subject: [PATCH 3/3] Make warning from #13875 slightly more detailed [skip sauce] --- docs/_includes/js/buttons.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_includes/js/buttons.html b/docs/_includes/js/buttons.html index 6d812e70a3..a0801b56cf 100644 --- a/docs/_includes/js/buttons.html +++ b/docs/_includes/js/buttons.html @@ -144,7 +144,7 @@ $('.btn').button()

Cross-browser compatibility

-

Firefox persists form control states across page loads. A workaround for this is to use autocomplete="off".

+

Firefox persists form control states (disabledness and checkedness) across page loads. A workaround for this is to use autocomplete="off".

$().button('reset')