[wp-trac] [WordPress Trac] #24364: Fix autocomplete="off" in Chrome
WordPress Trac
noreply at wordpress.org
Mon Jun 24 21:45:55 UTC 2013
#24364: Fix autocomplete="off" in Chrome
----------------------------+-----------------------
Reporter: azaozz | Owner: azaozz
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.6
Component: Administration | Version:
Severity: blocker | Resolution:
Keywords: |
----------------------------+-----------------------
Comment (by markjaquith):
Don't hate me:
{{{
<script>
jQuery(function($){
setTimeout( function(){
$('input', '#your-profile').each( function(i, v) {
$v = $(v);
if ( $v.css('background-color') === 'rgb(250, 255,
189)' ) {
console.log( $v );
$v.val('');
}
});
$('#pass1').val('');
}, 100 );
});
</script>
}}}
I've been trying variations on this theme. You have to wait a little bit
(100 ms is what I settled on) to let Chrome to its dirty work. And then
you can act. Instead of looking at the background color (super janky), we
could just do the pass1 one (which I've hardcoded, because we don't want
to miss it), or we could to data-original-value="" elements.
None of these options are great, and I may just be adding additional heft
to the "just mark the whole form as autocomplete="off" strategy".
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24364#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list