Re: [RFC] DOM Living Standard API
| From: | Benjamin Eberlei | Date: | Sat, 23 Mar 2019 09:33:46 +0000 |
| Subject: | Re: [RFC] DOM Living Standard API | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104884@lists.php.net to get a copy of this message | ||
On Fri, Mar 22, 2019 at 11:26 PM Claude Pache <claude.pache@gmail.com>
wrote:
> Beware that behaviour of some methods should differ between HTML and
> non-HTML documents. For instance, the RFC says:
>
> > DOMElement→nodeName casing was previously undefined, it is now changed
> to always uppercase.
>
> However, the DOM Living Standard says it is uppercase (even,
> ASCII-uppercased) only in the HTML namespace. For XML documents, the casing
> is not modified.
>
You are absolutely right, i missed that in the convoluted description of
the behavior :-) I need to rethink how this would fit with the
compatibility flags, it might cause a problem given that loadHTML for
example doesn't automatically put the elements into HTML namespace. I
updated the RFC to reflect this.
To be honest, the compatibility thing is what i am least sure in,
especially if this should be combined with the new methods + removal of
unused code or should be handled separately.
> —Claude
>
>