WebHitTestResult#
Added in version 2.8.
Superclasses: Object
Result of a Hit Test (Web Process Extensions).
WebKitWebHitTestResult extends HitTestResult to provide information
about the WebKitDOMNode in the coordinates of the Hit Test.
Methods#
- class WebHitTestResult
- context_is_editable() bool#
Check whether there is an editable element at the hit test position.
Checks whether
EDITABLEflag is present in the context flags.
- context_is_image() bool#
Check whether there is an image element at the hit test position.
Checks whether
IMAGEflag is present in the context flags.
- context_is_link() bool#
Check whether there is a link element at the hit test position.
Checks whether
LINKflag is present in the context flags.
- context_is_media() bool#
Check whether there is a media element at the hit test position.
Checks whether
MEDIAflag is present in the context flags.
- context_is_scrollbar() bool#
Check whether there is a scrollbar at the hit test position.
Checks whether
SCROLLBARflag is present in the context flags.
- context_is_selection() bool#
Check whether there is a selected element at the hit test position.
Checks whether
SELECTIONflag is present in the context flags.
- get_js_node(world: ScriptWorld | None = None) Value | None#
Get the
Valuefor the DOM node inworldat the coordinates of the Hit Test.Added in version 2.40.
- Parameters:
world – a
ScriptWorld, orNoneto use the default