- From: Cameron McCormack <cam@mcc.id.au>
- Date: Sat, 25 Oct 2008 19:01:07 +1100
- To: public-svg-wg@w3.org
Chris Lilley: > > We agree that an invalid IRI means its not rendered; and if its not in > > the tree it wont be rendered anyway so there is no need to throw in > > that case. > > > > We also think that inserting an invalid IRI would not throw on > > setTrait, because then set would need to resolve the IRI. Instead, it > > will disable rendering, when rendering occurs. So we agree there is no > > need to throw then either. > > > > You have ACTION-2333, to fix the spec accordingly. Cameron McCormack: > I agree and will make the change. Done: http://lists.w3.org/Archives/Member/member-svg-editors/2008Oct/0362.html I have removed that sentence from the description of setTraitNS(). I have also reworded that first paragraph that talks about when INVALID_ACCESS_ERR is thrown, so that setting an IRI won’t result in it being fetched and the exception possibly thrown. The new wording is: Note about invalid/unsupported trait values: There are two situations where the various trait setter methods (such as the setTrait, setFloatTrait and setPathTrait methods) consider a value invalid and throw a DOMException with the INVALID_ACCESS_ERR code. The first situation is when the trait value is invalid with regards to its definition. (For example, trying to set the 'stroke-linejoin' trait to 'foo' would result in this exception being thrown). The trait methods will consider the value to be invalid if it is an unsupported value. However, if the trait value being set is an IRI reference, such as when setting a <FuncIRI> value on the 'fill' property or when setting the 'xlink:href' attribute on an 'image' element, an SVG user agent must not consider that trait value invalid if it is syntactically correct but is otherwise an invalid IRI reference. Thus, the DOMException with code INVALID_ACCESS_ERR must not be thrown in this case. This obviates the need for an SVG user agent to fetch the IRI upon setting the trait solely to determine whether it is an invalid IRI reference. — http://dev.w3.org/SVG/profiles/1.2T/publish/svgudom.html#svg__TraitAccess -- Cameron McCormack ≝ http://mcc.id.au/
Received on Saturday, 25 October 2008 08:01:45 UTC