Re: DOMElement::nodeValue is not W3C conforming
| From: | Matteo Beccati | Date: | Wed, 09 Sep 2015 11:24:25 +0000 |
| Subject: | Re: DOMElement::nodeValue is not W3C conforming | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88123@lists.php.net to get a copy of this message | ||
Hi Christoph,
> In bug #70029 it has been reported that DOMElement::nodeValue currently
> does not conform to the W3C specs. Instead of NULL, it returns the
> ::textContent.
>
> I had committed the patch for master only, to avoid the undesirable BC
> break for PHP 5.6, but there have been concerns that the BC break might
> even be to severe for PHP 7.0.
>
> Therefore I'm bringing this issue to the list. Is it okay to fix the
> behavior for PHP 7.0? Shall we wait until 7.1? Does that require an RFC?
I don't think it requires an RFC, but I would say it it safer to leave
it for 7.1, unless extremely pressing. As little as it might seem it's
still a BC-break that would be otherwise introduced in 7.0-rc3.
That said, I'll be ok if it gets fixed in 7.0. I just raised it as it
was causing PHPUnit to bypass all the tests, thus broken builds for all
the projects depending on it.
Cheers
--
Matteo Beccati
Development & Consulting - http://www.beccati.com/