RCS Computers <[EMAIL PROTECTED]> writes:

> Would it be possible to use Elinks to download a web page from a server, 
> run the javascript on the page, and then have it output the resulting 
> HTML?

ELinks does not support document.write, so JavaScript code cannot
generate links as HTML.  There was an attempt to implement this
in 0.12.GIT; the part that captures the written HTML to a string
is still there, but the part that parses the HTML from the string
was reverted in commit 2c087e52e74528a720621186b91880463e039d50
on 2006-02-12.  If you just want to scan the generated links, I
think it wouldn't be terribly hard to change ELinks to save the
written HTML to a file that a separate program could then parse.
This of course does not help if the written HTML tries to run
more scripts.

The DOM might be another way to make links programmatically, but
ELinks does not yet support it either.  (I believe 0.12.GIT has
some experimental code for setting up a DOM, but none for letting
JavaScript access it.)

Support for ECMAScript/JavaScript in web pages is an experimental
feature and will be disabled by default in ELinks 0.12.0.

Attachment: pgpzuZafUBJR2.pgp
Description: PGP signature

_______________________________________________
elinks-users mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-users

Reply via email to