- From: 森建 <notifications@github.com>
- Date: Sun, 21 Oct 2018 09:08:41 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 21 October 2018 16:09:03 UTC
https://html.spec.whatwg.org/multipage/dom.html#dom-document-nameditem Modern browsers except Edge expose `Element` with name attribute more preferentially than a property already defined in `Document` WebIDL. Since this behavior seems to be dangerous, IMHO, it is better to design specifications that preferentially return defined properties if there is no compatibility problem. ```html <title>This is Document Title</title> <form name="title"></form> <script> console.log(document.title); // <form name="title"></form> in Chrome, Firefox, Safari // "This is Document Title" in Edge </script> ``` code: https://codepen.io/petamoriken/pen/zmaRJX (appendix) `WindowProxy` version: https://codepen.io/petamoriken/pen/MPXNJe -- 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/708
Received on Sunday, 21 October 2018 16:09:03 UTC