Opened 20 months ago
Closed 19 months ago
#19151 closed defect (bug) (fixed)
Admin Bar Search issues in IE
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Toolbar | Version: | 3.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | info@…, kpayne@… |
Description
In IE 8, search throws a JS error:
Message: 'event.target.value' - is null or not an object Line: 445 Char: 1 Code: 0
In IE 9, "Search" label is not visible.
Attachments (11)
Change History (33)
comment:1
ocean90
— 20 months ago
- Keywords needs-patch added
comment:3
ocean90
— 20 months ago
- Keywords has-patch added; needs-patch removed
Patch attached. Not tested in IE.
comment:4
azaozz
— 20 months ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In [19160]:
SergeyBiryukov
— 20 months ago
comment:5
SergeyBiryukov
— 20 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
In IE 9, "Search" label is still invisible (see the screenshot).
comment:6
ocean90
— 20 months ago
IE 7: http://cl.ly/BZxI
IE 8: http://cl.ly/BZpO
IE 9: http://cl.ly/BZe4
The placeholder attribute is supported in all major browsers, except Internet Explorer.
It's the same as in Twenty Eleven. We could make the background color for IE 9 white too.
comment:7
toscho
— 20 months ago
- Cc info@… added
The main problem here is the usage of the 'placeholder' attribute: It should not be used as a replacement for the 'label' element. Nobody will type 'Search' into the box. :)
Screenreader users with IE don’t have access to the 'placeholder' attribute, no matter how it is styled.
comment:9
kurtpayne
— 20 months ago
- Cc kpayne@… added
The missing search label is a problem for twentyeleven, too. screenshot. 19151.2.patch is an extremely simple fix for twentyeleven that doesn't rely on jQuery.
If a javascript fix for IE is okay, I can write a patch for the admin side, too. Just wanted to get feedback on this first.
comment:10
ocean90
— 19 months ago
kurtpayne, please open a new ticket for Twenty Eleven.
But -1 for such a big file for a simple placeholder attribute.
comment:11
SergeyBiryukov
— 19 months ago
Related: #19230
comment:12
kurtpayne
— 19 months ago
@ocean90, #19230 created per your request. Yes, patch file is large because jQuery isn't available in twentyeleven. Patch is also readable and commented. Minified, it's ~825 bytes. I looked at other approaches for solving the placeholder problem in IE, and this was the simplest approach. Is there a better way to solve this?
comment:13
nacin
— 19 months ago
This placeholder stuff is pretty complicated. Why not just wrap it in a <label> for screen readers, and convert it to a simple icon, no text? (The icon will need to be lighter to contrast better.) WP.com's admin bar implements this and it works well (though obviously our search button will not be flush right).
Even better, the search box should probably appear below the admin bar, rather than grow within the admin bar. (Think how Shortlink works -- same deal.) This prevents buttons from being temporarily pushed off. This is likely for 3.4 unless something else comes up that requires a bigger re-work.
comment:14
ryan
— 19 months ago
See also #19149
comment:15
azaozz
— 19 months ago
- Keywords close added; has-patch removed
Currently the search box is displayed in IE directly, no "Search" text overlay/placeholder. Thinking that's good enough for now. It degrades well.
comment:16
follow-up:
↓ 17
SergeyBiryukov
— 19 months ago
The problem isn't the missing placeholder. Unlike the one in Twenty Eleven, the search icon in Admin Bar is barely visible in IE 9: 19151.no-search-label.png.
comment:17
in reply to:
↑ 16
;
follow-up:
↓ 18
azaozz
— 19 months ago
Replying to SergeyBiryukov:
It is barely visible in all browsers, perhaps we need a lighter version of it that will be visible both on the dark background and on white.
SergeyBiryukov
— 19 months ago
comment:18
in reply to:
↑ 17
SergeyBiryukov
— 19 months ago
SergeyBiryukov
— 19 months ago
comment:19
SergeyBiryukov
— 19 months ago
- Keywords has-patch added; close removed
comment:20
toscho
— 19 months ago
If there is no placeholder and images are disabled it will be really hard just to find the search field.
comment:21
azaozz
— 19 months ago
In [19407]:
comment:22
azaozz
— 19 months ago
- Resolution set to fixed
- Status changed from reopened to closed
In [19413]:
The JS is removed in #19159. But I think we need something similar again because it still links to # which ends in scrolling to top.