From fc5cdb93b82130fe69dcf3b6d4647451c7e8fc99 Mon Sep 17 00:00:00 2001 From: Pieter Bogaerts Date: Mon, 9 Jul 2018 16:44:55 +0200 Subject: [PATCH] Updated the autocomplete attribute to match the spec. --- src/jquery.autocomplete.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 635f058..b5a17bd 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -163,12 +163,7 @@ options = that.options, container; - // Remove autocomplete attribute to prevent native suggestions: - // as per - // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion - // some browsers e.g. Google Chrome ignore autocomplete=off but autocomplete=nope - // will provide the correct behaviour - that.element.setAttribute('autocomplete', 'nope'); + that.element.setAttribute('autocomplete', 'off'); // html() deals with many types: htmlString or Element or Array or jQuery that.noSuggestionsContainer = $('
')