[whatwg] Specification of window.find()

benjamin.poulain at nokia.com benjamin.poulain at nokia.com
Wed Oct 27 14:07:37 PDT 2010


Hi,

I would like to suggest a change for the main HTML 5 specification: 
http://www.whatwg.org/specs/web-apps/current-work/

The problem I have is with the Window object specification 
(http://www.whatwg.org/specs/web-apps/current-work/#the-window-object ).
It does not mention the method find() which can be found on most engines 
(e.g.: https://developer.mozilla.org/en/DOM/window.find ).

I think it would be good to have it in the standard, and to define a 
standard behavior for it. WebKit and Gecko have small differences in the 
way this function is implemented.


I recently stumbled upon the way this function handle content 
invisible because of clipping: https://bugs.webkit.org/show_bug.cgi?id=15078

I think the best way to handle this case would be not to select the 
hidden strings. This would be the less disruptive for Web developers, 
and would make sense for the user interface.

In any case, I would prefer this function to be part of a standard 
instead of having a behavior specific to WebKit.

Best regards,
Benjamin


More information about the whatwg mailing list