Creates and returns a volatile Just-In-Time (JIT) COM Wrapper / Proxy for an HTML5 Element, or Document, or Window objects.
This feature is designed to allow basic read / write DOM manipulation without resolving to JavaScript execution.
Selector can be either the CSS3 Selector of the HTML5 Element you wish to manipulate, or "document" for the DOM Document, or "window" for DOM Window objects respectively. If you are unfamiliar with CSS3 Selectors have a look in Finding the correct CSS3 Selector article.
Creates and returns a volatile Just-In-Time (JIT) COM Wrapper / Proxy for an HTML5 Element, or Document, or Window objects.
This feature is designed to allow basic read / write DOM manipulation without resolving to JavaScript execution.
Visual Basic |
---|
Public Function QuerySelector( _ ByVal Selector As String _ ) As HTML5NodeElement |
Selector can be either the CSS3 Selector of the HTML5 Element you wish to manipulate, or "document" for the DOM Document, or "window" for DOM Window objects respectively. If you are unfamiliar with CSS3 Selectors have a look in Finding the correct CSS3 Selector article.
An HTML5Element COM wrapper / proxy that can be used for read/write access to HTML5 DOM.
HTML5Element COM Class is light-weight wrapper / proxy for HTML5 Elements, Document and Window objects that bridges the gap between COM and Chromium worlds.
An instance of this COM class holds internally a CSS3-like selector that is used as and when needed for accessing the underlying HTML5 DOM Node of the WebKit Blink Rendering Engine. This COM object is taking advantage of WebKitX IPC mechanism in order to read / write DOM attributes or CSS3 styles synchronously. You may keep a reference to an HTML5Element instance for as long as the WebKitX control and its HTML5 Page are loaded and dispose references when you change page or destroy the control.
The term "Just-In-Time" means that WebKitX does not keep reference of HTML5Element objects; instances are created and returned to your code as needed. Please note that every time you access a property or method of an HTML5Element instance, WebKitX performs an IPC transaction to the Blink Rendering Engine which resides in out-of-process CEF3 executables. For that reason you are advised to use this feature orthologically and avoid unnecessary interactions as it may slow down rendering performance.