Can I use SAXON-CE in content script for extension use? - saxon

Has anyone tried to use SAXON-CE in extension content script?
So Xpath 2.0 can be used on DOM.

Related

Does JxBrowser support chromium's webview tag?

I'm evaluating JCEF, electron, NW.js and JxBrowser for the support of nested webview tag.
I see that electron and NW.js support webview tag but nesting is not supported.
Does JxBrowser support webview tag? sample page with webview tag didnt work. Any pointer is appreciated.
JxBrowser doesn't support <webview> tag.
In Chromium, this tag is a part extension API and is not available for regular web pages. We don't expose this API either.
The only way to embed content in JxBrowser is to use <iframe> elements.

How to retrieve HTML representation of components?

I would like to output HTML codes of my vaadin's components at my console. I didn't find any methods for this . Can it be possible ?
It is not possible to retrieve component's generated HTML with Vaadin's server-side programming mode.
If you really need to do it, you could write your own extension what transfers component's generated HTML from browser to server after it's rendered. Writing your extension means the you need to it with GWT (GWT Web Toolkit, formerly Google Web Toolkit).

Extract background-image from an HTML element in ruby

I am trying to extract background-url from a div using Nokogiri but am not able parse background-url of it.
While Searching on StackOverflow I found this link
Parsing: Can I pick up the URL of embedded CSS Background in Nokogiri?
but the solution given there doesn't work.
Nokogiri is not a web browser. It stands on top of libxml2 to provide fast and excellent parsing of XML and HTML, and manipulation and extraction of data from this.
It only deals with the HTML in a web page. It does not run any JavaScript. It does not apply CSS to the DOM. There is no way to use Nokogiri to find a CSS style applied to an element unless it is directly on the style="..." attribute on that element. (And even then you would need to use something else, like regex, to parse the CSS therein.)
You will want to use something else, like a headless browser controlled by Ruby, e.g. Watir or Selenium, if you want to process a web page and treat it like a web browser does.

view Html source in chrome with delphi

is there a way to extract the viewed html source from google chrome using delphi? or script to pass info on my apps?
Maybe, but why would you use a browser? Why don't you just download the page?

Using Html DOM in firefox plug-in?

Can you use Html DOM in firefox plug in to...
1) write/Auto fill in a form?
2) Read values in label? Textboxes? And use them in your program?
In Firefox, the current document is accessible in JavaScript by content.document and from there you can do anything you would do in JavaScript on the page itself.

Resources