unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] Support html template tag in shr
@ 2022-05-28  8:13 Valenoern
  2022-05-28 10:43 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Valenoern @ 2022-05-28  8:13 UTC (permalink / raw)
  To: emacs-devel

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Support html template tag in shr
  2022-05-28  8:13 [PATCH] Support html template tag in shr Valenoern
@ 2022-05-28 10:43 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-28 10:43 UTC (permalink / raw)
  To: Valenoern; +Cc: emacs-devel

Valenoern <truthlibertydinosaurs@gmail.com> writes:

> 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.

Thanks; pushed to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-28 10:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-28  8:13 [PATCH] Support html template tag in shr Valenoern
2022-05-28 10:43 ` Lars Ingebrigtsen

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).