[Bug 27283] New: InvalidAccessError usage is questionable; use TypeError instead?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27283

            Bug ID: 27283
           Summary: InvalidAccessError usage is questionable; use
                    TypeError instead?
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Encrypted Media Extensions
          Assignee: adrianba@microsoft.com
          Reporter: d@domenic.me
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org

"If keySystem is an empty string, return a promise rejected with a new
DOMException whose name is InvalidAccessError.

If supportedConfigurations was provided and is empty, return a promise rejected
with a new DOMException whose name is InvalidAccessError."

In general TypeErrors are preferred for invalid arguments. I think in general
the existence of InvalidAccessError is a mistake from the days before it was
realized that IDL was not a language-agnostic layer. (I will file a WebIDL bug
to discuss.)

No big deal though.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 8 November 2014 19:25:21 UTC