user3060326
user3060326

Reputation: 187

How to interact with DOM without Javascript?

How can I interact with DOM in either CEF or Awesomium without using Javascript? Why do we have to use Javascript just to interact with DOM?

Upvotes: 1

Views: 3017

Answers (1)

Sharadh
Sharadh

Reputation: 1328

CEF

While CEF allows access to the DOM via it's CefDOMVisitor, CefDOMDocument, CefDOMNode, CefDOMEvent and CefDOMEventListener declared in cef_dom.h, chief contributor Marshall Greenblatt confirms here that it is meant for read only access:

The DOM API exposed by Chromium is read-only with the exception of adding listeners. CEF exposes this same API via the CefFrame::VisitDOM method. If you want to manipulate the DOM directly via C++ it will be necessary to use WebKit interfaces directly.

So, if you'd like full access similar to IHtmlElement, you might have to use Webkit directly...

Upvotes: 3

Related Questions