- From: Aryeh Gregor <notifications@github.com>
- Date: Tue, 30 Aug 2016 04:36:43 -0700
- To: whatwg/dom <dom@noreply.github.com>
Received on Tuesday, 30 August 2016 11:37:13 UTC
```html <!DOCTYPE html> <script> try { document.createElementNS("a", "a:0") } catch(e) { document.documentElement.textContent = e.name } </script> ``` Outputs InvalidCharacterError in Chrome, Firefox, and Edge. Per [spec](https://dom.spec.whatwg.org/#validate), it should throw NamespaceError, because "a:0" matches the Name production. I think browsers should probably change here instead of the spec, because browsers' behavior doesn't make sense to me, but I'm filing a spec bug anyway because we seem to have interop against the spec. -- 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/319
Received on Tuesday, 30 August 2016 11:37:13 UTC