From 9583802a324ff431356c83dd40777561e3bce1b4 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sun, 4 Dec 2016 11:00:14 +0000 Subject: [PATCH] Merge pull request #40 from asciimoo/firefox-ua [fix] Firefox user agent instead of Chrome git-svn-id: file:///srv/svn/repo/yukari/trunk@59 f3bd38d9-da89-464d-a02a-eb04e43141b5 --- morty.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/morty.go b/morty.go index 365ba63..d309211 100644 --- a/morty.go +++ b/morty.go @@ -499,7 +499,10 @@ func sanitizeHTML(rc *RequestConfig, out io.Writer, htmlDoc []byte) { sanitizeHTML(rc, out, decoder.Raw()) } - case html.DoctypeToken, html.CommentToken: + case html.CommentToken: + // ignore comment. TODO : parse IE conditional comment + + case html.DoctypeToken: out.Write(decoder.Raw()) } } else {