* lisp/dom.el (dom-texts): Simplify (Bug#36441).
This commit is contained in:
parent
8d43315cfa
commit
d07dd64fd0
1 changed files with 9 additions and 11 deletions
20
lisp/dom.el
20
lisp/dom.el
|
@ -81,17 +81,15 @@ A typical attribute is `href'."
|
|||
(if (eq (dom-tag node) 'script)
|
||||
""
|
||||
(mapconcat
|
||||
'identity
|
||||
(mapcar
|
||||
(lambda (elem)
|
||||
(cond
|
||||
((stringp elem)
|
||||
elem)
|
||||
((eq (dom-tag elem) 'script)
|
||||
"")
|
||||
(t
|
||||
(dom-texts elem separator))))
|
||||
(dom-children node))
|
||||
(lambda (elem)
|
||||
(cond
|
||||
((stringp elem)
|
||||
elem)
|
||||
((eq (dom-tag elem) 'script)
|
||||
"")
|
||||
(t
|
||||
(dom-texts elem separator))))
|
||||
(dom-children node)
|
||||
(or separator " "))))
|
||||
|
||||
(defun dom-child-by-tag (dom tag)
|
||||
|
|
Loading…
Add table
Reference in a new issue