Function: dom-by-tag
dom-by-tag is a byte-compiled function defined in dom.el.gz.
Signature
(dom-by-tag DOM TAG)
Documentation
Return elements in DOM that is of type TAG.
A name is a symbol like td.
Source Code
;; Defined in /usr/src/emacs/lisp/dom.el.gz
(defun dom-by-tag (dom tag)
"Return elements in DOM that is of type TAG.
A name is a symbol like `td'."
(let ((matches (cl-loop for child in (dom-children dom)
for matches = (and (not (stringp child))
(dom-by-tag child tag))
when matches
append matches)))
(if (equal (dom-tag dom) tag)
(cons dom matches)
matches)))