[whatwg/dom] Validating a qualified name does not match browsers in a corner case (#319)

```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