]> git.eshelyaron.com Git - emacs.git/commit
When making a readable page in EWW, include the <title> and similar tags
authorJim Porter <jporterbugs@gmail.com>
Tue, 17 Jun 2025 16:11:55 +0000 (09:11 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 19:19:05 +0000 (21:19 +0200)
commitcc3f2c7897d8206fdc0353f8d8c327d596a3ea42
treebbd41667b89b68ff07b78c00551b0832c3ecf33f
parent484296f08ff4b4a3d9aaf5587388a30ba2ab2520
When making a readable page in EWW, include the <title> and similar tags

* lisp/net/eww.el (eww--walk-readability, eww-readable-dom): New
functions.
(eww-display-html): Call 'eww-readable-dom'.
(eww-readable): Call 'eww-readable-dom'.  Don't copy over 'eww-data'
properties that our new readable page can handle on its own.
(eww-score-readability): Rewrite in terms of 'eww--walk-readability'.
Make obsolete.
(eww-highest-readability): Make obsolete.

* test/lisp/net/eww-tests.el (eww-test--lots-of-words)
(eww-test--wordy-page): New variables...
(eww-test/readable/toggle-display): ... use them.
(eww-test/readable/default-readable): Make sure that the readable page
includes the <title> and <link> tags (bug#77299).

(cherry picked from commit 2bdcf0250acecdb0719203ae711aedf5baad1783)
lisp/net/eww.el
test/lisp/net/eww-tests.el