[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#704026: package name window rejects leading blanks in package name



On Sun, May 26, 2013 at 9:13 PM, David Suárez wrote:

> I agree with that, usability is important, but we can just eliminate people
> with javascript support because other don't have.

I guess you meant s/can/can't/? If so, I agree but we shouldn't also
leave people without JS in a worse situation than people with JS when
we can satisfy both with the same solution (fixing the rewrite rules).

Anyway, I've done the following:

Fixed the rewrite rules and the pts.cgi script to strip whitespace in
query parameters.

Added the onblur bits you suggested and some more on the individual
package pages.

Added a JS function that avoids the usual redirect, since that gives
less requests for the server and less time for page load for JS users.
Since it isn't possible to do that for non-JS users, this is a
progressive enhancement.

Bug will be closed and the code will be live soon.

-- 
bye,
pabs

http://wiki.debian.org/PaulWise


Reply to: