[wiki] [sites] [surf][patch] externalpipe: Export full document outerHTML when JS is enabled || Miles Alan

From: <git_AT_suckless.org>
Date: Wed, 07 Aug 2019 12:53:18 +0200

commit c8b953b67a59722ec2449ff2a7f7543a3ded522a
Author: Miles Alan <m_AT_milesalan.com>
Date: Wed Aug 7 05:44:19 2019 -0500

    [surf][patch] externalpipe: Export full document outerHTML when JS is enabled
    
    Rather than exporting only the body when JS is enabled; now the non-JS
    functionality is matched and we export the entire HTML document. This fixes
    a bug where symbols / non-english characters are not rendered properly because
    the meta tag is not recognized in the associated surf_linkselect.sh script's
    xmllint call.

diff --git a/surf.suckless.org/patches/externalpipe/index.md b/surf.suckless.org/patches/externalpipe/index.md
index e09c3078..eef27d4e 100644
--- a/surf.suckless.org/patches/externalpipe/index.md
+++ b/surf.suckless.org/patches/externalpipe/index.md
_AT_@ -43,7 +43,7 @@ Now you have the new keybindings:
 Download
 --------
 
-* [surf-2.0-externalpipe.diff](surf-2.0-externalpipe.diff) (2368) (20190502)
+* [surf-2.0-externalpipe.diff](surf-2.0-externalpipe.diff) (2379) (20190807)
 
 Author
 ------
diff --git a/surf.suckless.org/patches/externalpipe/surf-2.0-externalpipe.diff b/surf.suckless.org/patches/externalpipe/surf-2.0-externalpipe.diff
index ac9dd831..ca62010d 100644
--- a/surf.suckless.org/patches/externalpipe/surf-2.0-externalpipe.diff
+++ b/surf.suckless.org/patches/externalpipe/surf-2.0-externalpipe.diff
_AT_@ -77,7 +77,7 @@ index 93a1629..ba53b94 100644
 +{
 + if (curconfig[JavaScript].val.i) {
 + webkit_web_view_run_javascript(
-+ c->view, "window.document.body.outerHTML",
++ c->view, "window.document.documentElement.outerHTML",
 + NULL, externalpipe_js_done, arg);
 + } else {
 + WebKitWebResource *resource = webkit_web_view_get_main_resource(c->view);
Received on Wed Aug 07 2019 - 12:53:18 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 07 2019 - 13:00:36 CEST