Closed uwejochum closed 12 months ago
Hi Uwe,
Please press C-h f libxml-parse-html-region RET
and show me the documentation for that function in your Emacs. Maybe it changed between 28 and 29.
Adam,
thanks for caring...
Here is the output of my Emacs 28.1:
%%%%%%%%%%%%EMACS OUTPUT%%%%%%%%%%%%%%%%%%%%%%%
libxml-parse-html-region is a built-in function in ‘C source code’.
(libxml-parse-html-region START END &optional BASE-URL)
Parse the region as an HTML document and return the parse tree. If BASE-URL is non-nil, it is used to expand relative URLs.
If you want comments to be stripped, use the ‘xml-remove-comments’ function to strip comments before calling this function.
Probably introduced at or before Emacs version 24.1.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I hope that helps.
Thank you for your work!
Best,
Uwe
Hi Uwe,
That commit should fix it. Please let me know if it does for you. Thanks.
Adam, wunderbar! I tested it with different web-sites, and it works perfectly! Thanks a lot, Uwe
When I try to capture a web page I get this error message (it happens on ALL webpages I tried to capture):
error in process sentinel: org-web-tools--sanitized-dom: Wrong number of arguments: libxml-parse-html-region, 1 error in process sentinel: Wrong number of arguments: libxml-parse-html-region, 1 helm-M-x-execute-command: Wrong type argument: number-or-marker-p, nil
Emacs is 28.1, org-web-tools is 20231029.453. All dependencies for org-web-tools are installed.
Any hint would be welcome.
Thank, Uwe