unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Valenoern <truthlibertydinosaurs@gmail.com>
To: emacs-devel@gnu.org
Subject: [PATCH] Support html template tag in shr
Date: Sat, 28 May 2022 00:13:18 -0800	[thread overview]
Message-ID: <26d6c531-a704-d0f7-9089-64dbd23e90cd@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

Today I was testing an html page including a "<template>" in eww and it 
wasn't correctly hidden, but I patched it and verified it displays 
correctly now.

[-- Attachment #2: 0001-Support-html-template-tag-in-shr.patch --]
[-- Type: text/x-patch, Size: 734 bytes --]

From b3fc5afa807b54de1329a7c721cbe169bb9d1cbc Mon Sep 17 00:00:00 2001
From: Valenoern <valenoern@distributary.network>
Date: Fri, 27 May 2022 21:46:09 -0800
Subject: [PATCH] Support html template tag in shr

* lisp/net/shr.el: add shr-tag-template as a dummy tag
---
 lisp/net/shr.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 6b05cbcf4f..7b388729b2 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -1325,6 +1325,10 @@ shr-tag-script
 
 (defun shr-tag-comment (_dom)
   )
+  
+(defun shr-tag-template (_dom)
+  ;; Introduced in HTML5. for text browsers, functionally similar to a comment
+  )
 
 (defun shr-dom-to-xml (dom &optional charset)
   (with-temp-buffer
-- 
2.34.1


             reply	other threads:[~2022-05-28  8:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-28  8:13 Valenoern [this message]
2022-05-28 10:43 ` [PATCH] Support html template tag in shr Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26d6c531-a704-d0f7-9089-64dbd23e90cd@gmail.com \
    --to=truthlibertydinosaurs@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).