* net/eww.el (eww-highest-readability): More dom.el fixes.

parent 97d6e7e7
2014-11-26 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/eww.el (eww-highest-readability): More dom.el fixes.
2014-11-26 Ulf Jasper <ulf.jasper@web.de>
* net/newst-backend.el (newsticker--parse-generic-items): Take
......
......@@ -590,12 +590,13 @@ the like."
(let ((result node)
highest)
(dolist (elem (dom-children node))
(when (> (or (dom-attr
(setq highest (eww-highest-readability elem))
:eww-readability-score)
most-negative-fixnum)
(or (dom-attr (cdr result) :eww-readability-score)
most-negative-fixnum))
(when (and (not (stringp elem))
(> (or (dom-attr
(setq highest (eww-highest-readability elem))
:eww-readability-score)
most-negative-fixnum)
(or (dom-attr result :eww-readability-score)
most-negative-fixnum)))
(setq result highest)))
result))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment