1
Fork 0
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:
Jim Porter 2025-07-01 18:33:05 -07:00
parent f732a44af8
commit fa77689b1e

View file

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