ISSUE-2160: Throwing INVALID_ACCESS_ERR when setting <use xlink:href="">
BadThrowHref
Throwing INVALID_ACCESS_ERR when setting <use xlink:href="">
- State:
- CLOSED
- Product:
- SVG 1.2 Tiny: Last Call
- Raised by:
- Cameron McCormack
- Opened on:
- 2008-10-24
- Description:
- http://lists.w3.org/Archives/Public/public-svg-wg/2008OctDec/0235.html
The spec currently says, in the description of when setTraitNS() throws
an INVALID_ACCESS_ERR DOMException:
Raised if the input value is an invalid value for the given trait or
null is specified. This exception is also thrown when the 'use'
element is hooked into the document tree and the the value of
'xlink:href' is set invalid.
— http://dev.w3.org/SVG/profiles/1.2T/publish/svgudom.html#svg__TraitAccess_setTraitNS
In the “note about invalid/unsupported trait values†section, it says
that INVALID_ACCESS_ERR is thrown whenever an unsupported value is set
for the trait. It doesn’t mention anything about whether the element is
in the document tree or not, however.
Given that the sentence mentioning @xlink:href on <use> describes a
subset of the situations when the exception would be thrown anyway, due
to the other section, I think it should be removed, as it could mislead
people into thinking that the exception is not thrown if the element is
not in the tree.
- Related Actions Items:
ACTION-2333 on Cameron McCormack to Remove the second sentence, on throwing with setTrait if an aivalid IRI is given - due 2008-10-31, closed- Related emails:
- SVG/profiles/1.2T doc-svgt12.html,NONE,1.1 (from cvsmail@w3.org on 2008-10-28)
- Minutes, 24 Oct 2008 SVG f2f (from chris@w3.org on 2008-10-27)
- Re: Throwing INVALID_ACCESS_ERR when setting <use xlink:href=''> ISSUE-2160 (from cam@mcc.id.au on 2008-10-25)
- SVG/profiles/1.2T/master udom.idd,1.275,1.276 (from cvsmail@w3.org on 2008-10-25)
- Re: Throwing INVALID_ACCESS_ERR when setting <use xlink:href=''> ISSUE-2160 (from cam@mcc.id.au on 2008-10-24)
- Re: Throwing INVALID_ACCESS_ERR when setting <use xlink:href=''> ISSUE-2160 (from chris@w3.org on 2008-10-24)
- ISSUE-2160 (BadThrowHref): Throwing INVALID_ACCESS_ERR when setting <use xlink:href=''> [Last Call: SVG 1.2 Tiny ] (from sysbot+tracker@w3.org on 2008-10-24)
Related notes:
Changed specification as per proposed wording
http://lists.w3.org/Archives/Member/member-svg-editors/2008Oct/0362.html
Raiser of issue satisfied with change.
Display change log