- From: Lorin Halpert <notifications@github.com>
- Date: Sat, 01 Aug 2020 17:58:42 -0700
- To: w3c/DOM-Parsing <DOM-Parsing@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 2 August 2020 00:58:54 UTC
`insertAdjacentElement()` returns the resulting element, yet `insertAdjacentHTML()` doesn't have a return value. In my mind it should return a NodeList if successful. Has this been discussed in the past? Having a return (NodeList or otherwise) removes the need to do a `querySelector`/`querySelectorAll`/`getElementByID` after insertion - making it cleaner to use. It makes more sense to me than the `insertAdjacentElement()` use case, where you already have a pre-existing reference to the attached element - however `insertAdjacentHTML()` starts from scratch, necessitating the lookup after insertion if you want to reference it later. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/DOM-Parsing/issues/63
Received on Sunday, 2 August 2020 00:58:54 UTC