sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit c8b953b67a59722ec2449ff2a7f7543a3ded522a
parent 659109464d3f60d10c627f101dafaa450c8293da
Author: Miles Alan <m@milesalan.com>
Date:   Wed,  7 Aug 2019 05:44:19 -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.

Diffstat:
Msurf.suckless.org/patches/externalpipe/index.md | 2+-
Msurf.suckless.org/patches/externalpipe/surf-2.0-externalpipe.diff | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/surf.suckless.org/patches/externalpipe/index.md b/surf.suckless.org/patches/externalpipe/index.md @@ -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 @@ -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);