Return an HTML5Window wrapper / proxy for window Element.
Return an HTML5Window wrapper / proxy for window Element.
Visual Basic |
---|
Public Property Window As HTML5Window |
Return an HTML5Window wrapper / proxy for window Element.
HTML5Window COM Class is light-weight wrapper / proxy 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.
Private Sub mnuDomAccss_Click() Dim Element As HTML5Element Set Element = WebKitX1.QuerySelector(CurrentSelector) Debug.Print Element.ClassName WebKitX1.Document.Body.Style.Border = "1px solid red" Debug.Print WebKitX1.Document.Body.FirstElementChild.NextElementSibling.InnerHTML ' Break in VB6 debugger. ' Add a watch for Element and expand it. Debug.Assert False End Sub