- From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
- Date: Mon, 11 Jun 2018 19:16:19 +0000
- To: public-svg-issues@w3.org
The Working Group just discussed `out of range value on an enum in the DOM`. <details><summary>The full IRC log of that discussion</summary> <krit> topic: out of range value on an enum in the DOM<br> <liam> github issue: https://github.com/w3c/svgwg/issues/423<br> <krit> krit: this seems to be on svgDOM<br> <krit> liam: seems a mix of browsers do the one thing and other browsers another thin g<br> <krit> krit: all tested browsers throw (Edge not tested)<br> <krit> krit: just that they throw differently<br> <krit> krit: according to the comment, Edge throws but does set baseVal to something else<br> <krit> krit: first question should be throw or not to throw<br> <krit> chris: I think we should keep baseVal unchanged which means throw<br> <krit> chris: 1. most implementations do it 2. it is more useful<br> <krit> AmeliaBR: silently failing is what CSS does.<br> <krit> AmeliaBR: we should not set the value on invalid value. Shall we throw or be silent about it.<br> <krit> resolution: not change current baseVal on setting it to an out-of-range value<br> <krit> resolution: Throw on out-of-range value for baseValue<br> <liam> https://wpt.fyi/results/svg/types/scripted/SVGAnimatedEnumeration-SVGClipPathElement.html has results for safari & firefox<br> <liam> ff - SyntaxError: An invalid or illegal string was specified<br> <krit> krit: Open question: What should we throw. Put this part back to GitHub?<br> <liam> safari - SVG_INVALID_VALUE_ERR<br> <liam> chrome - TypeError<br> <krit> krit: I'd be in favour for TypeError<br> <krit> liam: invalid value or TypeError might make sense.<br> <krit> AmeliaBR: TypeError would be more in line with what we spec. But depends on how difficult it is for browser<br> <krit> resolution: Use TypeError and wait for UA implementation feedback<br> <krit> s/Use TypeError/Use TypeError for out-of-range values on baseVal/<br> <liam> github issue: https://github.com/w3c/svgwg/issues/394<br> </details> -- GitHub Notification of comment by AmeliaBR Please view or discuss this issue at https://github.com/w3c/svgwg/issues/423#issuecomment-396355003 using your GitHub account
Received on Monday, 11 June 2018 19:16:25 UTC