Description

When pasting text into the search field (upper right corner) with middle-click (as usally done under X11), the search buttons ("Title", "Text") will remain disabled.

Steps to reproduce

Under Linux/X11 open any page, mark something with the left mouse buttom, paste it into the search fieled using the middle mouse buttom (or the scroll wheel). Note the search submit buttons will be disabled and the dummy text will be deleted when you left-click into the text field or when you middle-click paste something into the text field. But the submit buttoms will remain disabled afterwards, hence preventing the submission of the search term(s) with a single click. You will have to type a space (or any other character) and delete it (using backspace), or to mouse un-focus and mouse re-focus the text field, in order to enable the submit buttons.

Details

This wiki.

MoinMoin Version

1.5.3-rc1 [Revision patch-526]

Python Version

2.4.2 (#1, Oct 15 2005, 21:28:51) [GCC 3.3.5 (Debian 1:3.3.5-13)]

Workaround

Discussion

Presumely the onchange="searchChange(this)" attribute of the HTML element input doesn't work as expected, or there are some errors in the scripts (JavaScript), or the design of the scripts.

An easy, yet radical solution for this issue would be to completely remove the JavaScript from the pages. - It is highly redundant anyway, because it needs to be transferred, loaded, and interpreted on every single page request. We would have to remove the dummy text, too. - I know that WCAG require dummy texts in search fields, but believe me, in this point the standard is wrong: If in doubt, the less JavaScript you use, the better is your accessibility. Furthermore, assistent technologies, like screen readers, read the content of the attribute alt of the HTML element input. Thus, even from the accessibilty's point of view it is better to beautify the alt text, which also means it should be localized, and remove both, JavaScript and dummy text completely.

However, if we consider this feature to be too "cool" to be removed, we should design it in a way that doesn't interfere with usability. Just have a look how they do it at e*ay, Wikipedia, or any other major page where you often use the search form.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/SearchButtonRemainsDisabledAfterPaste (last edited 2008-03-19 00:12:12 by JohannesBerg)