- From: Joey Arhar <notifications@github.com>
- Date: Mon, 16 Mar 2020 20:30:30 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 17 March 2020 03:30:43 UTC
A difference between the spec and browser implementations was raised here: https://bugs.chromium.org/p/chromium/issues/detail?id=1061436 [In the spec](https://dom.spec.whatwg.org/#dom-document-createelement), document.createElement should allow names that "match the Name production," which links to [this definition](https://www.w3.org/TR/xml/#NT-Name), which allows characters in many ranges, including `[#x10000-#xEFFFF]`, which I am guessing includes emojis and would therefore allow ` document.createElement('test-\u{1f602}')` However, Chrome, Firefox, and Safari all throw exceptions when this code snippet is run. Should the browsers update to match the spec, or should the spec be updated? Or am I misinterpreting the spec? If the spec should be updated, what should it say instead? -- 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/849
Received on Tuesday, 17 March 2020 03:30:43 UTC