* lisp/net/shr.el (shr-collect-extra-strings-in-table):
Don't render a table if it is called for the first time,
IOW, recognize it to never be invalid (bug#25051).
;; FLAGS becomes (t . nil) if a <tr> clause is found in the children
;; of DOM, and becomes (t . t) if a <td> or a <th> clause is found
;; and the car is t then. When a <table> clause is found, FLAGS
- ;; becomes nil if the cdr is t then. But if the cdr is nil then,
+ ;; becomes nil if the cdr is t then. But if FLAGS is (t . nil) then,
;; it renders the <table>.
(cl-loop for child in (dom-children dom) with recurse with tag
do (setq recurse nil)
else if (eq tag 'table)
if (cdr flags)
do (setq flags nil)
- else
+ else if (car flags)
do (setq recurse nil)
(shr-tag-table child)
- end end end end end end end end end
+ end end end end end end end end end end
when recurse
append (shr-collect-extra-strings-in-table child flags)))