Last modified: 2013-10-12 07:37:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42645, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40645 - jquery.placeholder shouldn't hide the placeholder when focussing an empty input field
jquery.placeholder shouldn't hide the placeholder when focussing an empty inp...
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.20.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-30 22:46 UTC by Krinkle
Modified: 2013-10-12 07:37 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2012-09-30 22:46:53 UTC
As specified by W3 and as implemented in the latest versions of Chrome and Firefix, our polyfill should match the native behaviour.

Right now the module's fallback implementation behaves like Chrome/Firefox used to behave (hide on focus when empty, whereas the new implementation is, hide when it becomes non-empty - difference being the case where a field is focussed and no content has been entered yet).

See also:
* bug 40441
* http://www.w3.org/TR/html-markup/input.text.html#input.text.attrs.placeholder
* http://caniuse.com/placeholder
Comment 1 Nemo 2012-09-30 22:55:22 UTC
By the way, this (bug 40441) is extremely annoying and confusing, and enough of a reason for some Firefox 15 users to abandon Vector in favour of monobook.
Comment 2 Krinkle 2012-09-30 22:57:47 UTC
(In reply to comment #1)
> By the way, this (bug 40441) is extremely annoying and confusing, and enough of
> a reason for some Firefox 15 users to abandon Vector in favour of monobook.

Then you might as well abandon the internet all together. Or switch to internet explorer 6, which doesn't have this feature yet.

This is standard behaviour and Firefox implemented it, not Vector, not MediaWiki. Our plugin actually does it the way you want it (which, unfortunately for you, is a bug that we intend to fix) - however the plugin only kicks in if there is no support for it in the browser.
Comment 3 Krinkle 2012-09-30 22:59:54 UTC
For example, the search bar on http://firefox.com (press arrow button on top right to expand the many) also has this (if you view it in Firefox of Chrome). There is no javascript enforcing that, it is how browsers have decided to do it.
Comment 4 Nemo 2012-09-30 23:08:10 UTC
(In reply to comment #2)
> Then you might as well abandon the internet all together. Or switch to internet
> explorer 6, which doesn't have this feature yet.

I've no idea what you're talking about. I'm only relaying the experience of a
confused user, originally described on that bug. 
(As for me, I've never used Vector, so I'm not affected at all.)

(In reply to comment #3)
> For example, the search bar on http://firefox.com (press arrow button on top
> right to expand the many) also has this (if you view it in Firefox of Chrome).
> There is no javascript enforcing that, it is how browsers have decided to do
> it.

I don't know if it's off topic here (summary and comment 0 are too technical for me), but firefox.com redirects me to https://www.mozilla.org/it/firefox/fx/ whose search bar behaves correctly, unlike bug 40441, because at least the placeholder is greyed out and easily recognizable as such.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links