Add Dom\Element::insertAdjacentHTML()

php.internals

Niels Dossche

1 year ago
Hi internals I'd like to add the Dom\Element::insertAdjacentHTML() DOM API from the WHATWG DOM spec to our DOM extension. PR link: https://github.com/php/php-src/pull/16614 It uses the same underlying infrastructure as $innerHTML and $outerHTML; it's the HTML counterpart of the existing Dom\Element::insertAdjacent(Element|Text) functions. Just asking here if anyone objects to the patch. Kind regards Niels

Gina P. Banyard

1 year ago
On Monday, 28 October 2024 at 20:21, Niels Dossche <dossche.niels@gmail.com> wrote:
> Hi internals > > I'd like to add the Dom\Element::insertAdjacentHTML() DOM API from the WHATWG DOM spec to our DOM extension. > PR link: https://github.com/php/php-src/pull/16614 > It uses the same underlying infrastructure as $innerHTML and $outerHTML; it's the HTML counterpart of the existing Dom\Element::insertAdjacent(Element|Text) functions. > Just asking here if anyone objects to the patch. > > Kind regards > Niels
Thank you for continuing to work on DOM/HTML support. :) I think adding this is a no-brainer. Best regards, Gina P. Banyard