- From: Cameron McCormack <cam@mcc.id.au>
- Date: Mon, 23 Jun 2014 16:02:26 +1000
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- CC: "www-style@w3.org" <www-style@w3.org>
On 23/06/14 15:11, Cameron McCormack wrote: > Thanks. I think these setters should set the attribute to the result of > serializing the value, though, just like the constructor does. Otherwise > you would see this: > > var f = new FontFace("blah", ..., { style: "Italic " }); > > // later, once the task to set the descriptors has run: > > assert(f.style == "italic"); > > f.style = "Normal "; > assert(f.style == "Normal ") The exception thrown when setting an invalid string (TypeError) is different from that thrown in the constructor (DOMException "SyntaxError"), too. They should be the same.
Received on Monday, 23 June 2014 06:01:27 UTC