W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2008

[whatwg] Safari-compatible <input type="search">

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Tue, 30 Sep 2008 16:18:20 +0200
Message-ID: <939BE205950A483189065D504CFB926C@POCZTOWIEC>
How can the Web designer know how many recent search terms the user would
like to keep handy at the search box?  
What if autosave strings clash, or get deliberately stepped upon?  
I think it is a user preference + browser QoI and Web sites should not try
to outsmart it.  Marking a box as a search box is already there (ISINDEX,

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Andy Lyttle
Sent: Tuesday, September 30, 2008 1:40 PM
To: whatwg at lists.whatwg.org
Subject: [whatwg] Safari-compatible <input type="search">

I would like Apple's <input type="search"> adopted as an official  
standard, maintaining Safari compatibility.  Attributes are:

onsearch="foo();" - JavaScript function called when the user  
initiates a search

incremental - if present, onsearch fires on every keypress, and on  
clicking the cancel button; otherwise onsearch fires when pressing Enter

results - if present, shows a little magnifying glass icon, which  
helps to visually identify the field as a search box

results=10 - the magnifying glass functions as a drop-down menu  
containing a history of the last (whatever number) search terms

autosave="foo" - define a unique name to identify the search history  
(so the same history may be shared across multiple search boxes, even  
across different domains)
Received on Tuesday, 30 September 2008 07:18:20 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:05 UTC