- From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
- Date: Mon, 02 Jul 2018 18:53:49 +0000
- To: public-svg-issues@w3.org
AmeliaBR has just labeled an issue for https://github.com/w3c/svgwg as "Needs editing": == What should happen if you try to set an out of range value on an enum in the DOM == The specification says not to throw. https://svgwg.org/svg2-draft/types.html#__svg__SVGAnimatedEnumeration__baseVal Edge seems to implement the specification as written, however.... There are lots of web-platform tests that have it as throwing a TypeError e.g. https://wpt.fyi/svg/types/scripted/SVGAnimatedEnumeration-SVGClipPathElement.html Chrome implements the throwing functionality of the web-platform tests Firefox and Safari both throw, but they throw something else. Should I change Firefox not to throw and fix the tests as well, or do we want the throwing behaviour in which case the spec needs fixing. Although the specification does not explicitly say so, if it doesn't throw presumably setting an out of range value should result in the baseValue becoming 0 (the unknown value). If it does throw it probably makes more sense to leave the baseValue unchanged (which is what browsers other than Edge do now I think). See https://github.com/w3c/svgwg/issues/423
Received on Monday, 2 July 2018 18:53:51 UTC