The following is a mostly complete list of the engine features:
Explicit bug-defeating related features:
Several parts of the engine are now exposed as public methods but the two most important methods are:
NW.Dom.match( selector, element, callback )
Matches an element with a given CSS selector in the specified context and returns “true” if it does, “false” otherwise.
Optionally execute a “callback” function, passed as fourth parameter, if the element matches the selector. The callback is passed the element as first argument.
This is the core “bottom-up” matcher implementation, the passed CSS selectors are converted to ad-hoc Javascript function resolvers and saved for later reuse.
Especially useful in the implementation of an “event delegation” system and to quickly traverse a tree of specific elements.
NW.Dom.select( selector, context, callback )
Select a subset of elements matching the given selector from the current document or the specified context.
Optionally execute a “callback” function, passed as third parameter, for each iterated element that matches the selector. The callback is passed the element as first argument.
The passed selector string can contain several CSS selectors separated by commas (selector group).
The selection functionality is based on the “bottom-up” matcher but for performance several optimization are executed to reduce the number of elements that will be scrutinized.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4