W3C home > Mailing lists > Public > www-svg@w3.org > February 2006

Error processing

From: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Date: Wed, 1 Feb 2006 16:28:08 +1100
To: www-svg@w3.org
Message-ID: <20060201052807.GG21777@port.mcc.id.au>


In SVG 1.1 section F.2 Error Processing it states:

  The following error processing shall occur when a document is in

    * The document shall be rendered up to, but not including, the first
      element which has an error.

Let's say I have this document:

  <svg ...>
    <rect width="100" height="100" onclick="evt.target.width.baseVal = -1"/>
    <circle cx="100" cy="100" r="50"/>

If I click on the rect should the circle disappear?

How about this one:

  <svg ...>
    <circle cx="100" cy="100" r="50" fill="url(#a)"/>
    <circle cx="200" cy="200" r="50" fill="url(#b)"
                             .setAttributeNS(null, 'r', '-1')"/>
      <radialGradient id="b">
        <stop offset="0" stop-color="yellow"/>
        <stop offset="100%" stop-color="red"/>
      <radialGradient id="a">
        <stop offset="0" stop-color="white"/>
        <stop offset="100%" stop-color="black"/>

After clicking on the second circle, the 'b' radialGradient element is
in error.  The text says the document "shall be rendered up to" just
before the element in error.  Does processing of the 'a' radialGradient
count as being "rendered" and thus the first circle is in error, since
it references 'a'?



 Cameron McCormack			ICQ: 26955922
 cam (at) mcc.id.au			MSN: cam (at) mcc.id.au
 http://mcc.id.au/			JBR: heycam (at) jabber.org
Received on Wednesday, 1 February 2006 05:28:21 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:07 UTC