mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
Ensure <style> and <template> HTML tags are never "readable" in EWW
This helps fix EWW readable mode on some web pages that use these tags, like the FSF blog. * lisp/net/eww.el (eww--walk-readability): Check for <style> and <template> tags.
This commit is contained in:
parent
f732a44af8
commit
fa77689b1e
1 changed files with 1 additions and 1 deletions
|
|
@ -1182,7 +1182,7 @@ non-nil, don't actually compute a score; just call the callback."
|
|||
((stringp node)
|
||||
(setq score (length (split-string node))
|
||||
noscore t))
|
||||
((memq (dom-tag node) '(script head comment))
|
||||
((memq (dom-tag node) '(head comment script style template))
|
||||
(setq score -2
|
||||
noscore t))
|
||||
((eq (dom-tag node) 'meta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue