Html: The "search" event

Created on 10 Feb 2016  路  12Comments  路  Source: whatwg/html

WebKit and Blink fire a search event at <input type="search">es in certain cases. See https://developer.mozilla.org/en-US/docs/Web/Events/search
Trivial example: http://jsbin.com/julilo/1/edit?html,js,output
This event doesn't currently seem to be spec'd anywhere, and I was unable to find any previous WHATWG/W3C discussions regarding it.

compat

Most helpful comment

Thanks for the update! From this point I'd like to take a look at the tests and see if I can add anything.

All 12 comments

@miketaylr, is this important for interop?

Will look into it.

@miketaylr Any findings?

(Relevant Chrome code: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp?l=125&rcl=2fbfd7490c876078719caf9867575b9a0826b2ba )

Related Chrome bug: https://crbug.com/690143

I'd like to work on this issue, is anyone else already working on it?

So, following the last link for the Chrome bug, I've noticed it's actually being deprecated and removed there, basically on the rejection reported here: https://lists.w3.org/Archives/Public/public-whatwg-archive/2008Nov/0403.html

I wonder if the correct solution is to not spec the search event. So my work here is stalled for now until further decision.

So the status is that Chrome and Safari ship this and @tkent-google is looking into removing it from Chrome. I guess it hasn't come up as a problem for Firefox or @miketaylr would have said something. Based on that I suppose we still want to get rid of this.

It might make sense to add "historical" tests to ensure the incremental attribute, the search event, and the onsearch event handler are not supported.

Thanks for the update! From this point I'd like to take a look at the tests and see if I can add anything.

@miketaylr Any findings?

馃憖

@miketaylr would have said something.

Yeah, sorry, lost track of this.

This has not surfaced as an important DOM event for compat, at least we don't know of significant bustage due to not having this in Gecko.

Reported to the WebKit maintainers here:

https://bugs.webkit.org/show_bug.cgi?id=195818

Tests for non-support were added in https://github.com/web-platform-tests/wpt/pull/19889 (merged just now).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dominiccooney picture dominiccooney  路  102Comments

rniwa picture rniwa  路  76Comments

mathiasbynens picture mathiasbynens  路  83Comments

tkent-google picture tkent-google  路  72Comments

dherman picture dherman  路  69Comments