[Bug 11857] getData() with no or too many arguments should throw


--- Comment #4 from Hallvord R. M. Steen <hallvord@opera.com> 2011-05-05 15:07:06 UTC ---
OK, I don't understand (yet) how to piece together the HTML5 and WebIDL specs
to get the full picture. Guess "3. If S is empty, throw a TypeError." under
http://dev.w3.org/2006/webapi/WebIDL/#es-operations is what I'm missing.

Chrome raises a SyntaxError, not a TypeError though. Does that mean the IDL in
the HTML5 spec should change

  DOMString getData(in DOMString format);


  DOMString getData(in DOMString format) raises SyntaxError;


Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 5 May 2011 15:07:09 UTC