- From: Liam Quin <notifications@github.com>
- Date: Mon, 21 Jun 2021 12:32:25 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 21 June 2021 19:33:40 UTC
I'd far rather use document.evaluate("//comment()") (i.e. XPath) for this case, as it's much more readable even for people who don't like XPath or are allergic to the letter x :-)
Making it easier to call XPath would be a good thing for cases like this, too; in
document.evaluate( '//comment()', document, null, XPath.ANY_TYPE, null );
only the first argument should really be needed.
Any API in which the integer literal 8 is passed to refer to the type of something has to be questioned, XHTTPRequest notwithstanding :)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/992#issuecomment-865290359
Received on Monday, 21 June 2021 19:33:40 UTC