aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-09-27 00:32:37 +0200
committerLars Ingebrigtsen2019-09-27 00:33:45 +0200
commit45727c4e6de7f6f6f61a4ae3589d5dd271ea8803 (patch)
treea853f0eadc96373bef56e7d870cf8ceb0df275cc /doc
parented9402f81907f5810d70fc421b456791d624ba1a (diff)
downloademacs-45727c4e6de7f6f6f61a4ae3589d5dd271ea8803.tar.gz
emacs-45727c4e6de7f6f6f61a4ae3589d5dd271ea8803.zip
Add a new `dom-search' function
* doc/lispref/text.texi (Document Object Model): Document it. * lisp/dom.el (dom-search): New function.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/text.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index d7b04d2934f..8d78a9b24ff 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -5162,6 +5162,11 @@ which is a regular expression.
5162Return all nodes in @var{dom} that have IDs that match @var{match}, 5162Return all nodes in @var{dom} that have IDs that match @var{match},
5163which is a regular expression. 5163which is a regular expression.
5164 5164
5165@item dom-search @var{dom} @var{predicate}
5166Return all nodes in @var{dom} where @var{predicate} returns a
5167non-@code{nil} value. @var{predicate} is called with the node to be
5168tested as its parameter.
5169
5165@item dom-strings @var{dom} 5170@item dom-strings @var{dom}
5166Return all strings in @var{dom}. 5171Return all strings in @var{dom}.
5167 5172