W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > May 2011

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 05 May 2011 15:07:07 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QI08x-0007Vt-Hp@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11857

--- 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);

to

  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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 5 May 2011 15:07:11 GMT