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:
Related emails:
  1. SVG/profiles/1.2T doc-svgt12.html,NONE,1.1 (from cvsmail@w3.org on 2008-10-28)
  2. Minutes, 24 Oct 2008 SVG f2f (from chris@w3.org on 2008-10-27)
  3. Re: Throwing INVALID_ACCESS_ERR when setting <use xlink:href=''> ISSUE-2160 (from cam@mcc.id.au on 2008-10-25)
  4. SVG/profiles/1.2T/master udom.idd,1.275,1.276 (from cvsmail@w3.org on 2008-10-25)
  5. Re: Throwing INVALID_ACCESS_ERR when setting <use xlink:href=''> ISSUE-2160 (from cam@mcc.id.au on 2008-10-24)
  6. Re: Throwing INVALID_ACCESS_ERR when setting <use xlink:href=''> ISSUE-2160 (from chris@w3.org on 2008-10-24)
  7. 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.

Anthony Grasso, 27 Oct 2008, 04:07:53

Display change log ATOM feed


Dirk Schulze <dschulze@adobe.com>, Chair, Chris Lilley <chris@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 2160.html,v 1.1 2020/01/17 13:19:59 carcone Exp $