W3C home > Mailing lists > Public > www-svg@w3.org > January 2005

Re: This might be a stupid question...

From: Cameron McCormack <cam-www-svg@aka.mcc.id.au>
Date: Sat, 15 Jan 2005 00:45:33 +1100
To: www-svg@w3.org
Message-ID: <20050114134533.GK31128@port.mcc.id.au>

Cameron McCormack:
> >After clicking the rect, is the document in error?

Dean Jackson:
> My thinking is that it is error. This is the same
> as a script adding an element that doesn't exist, or
> as a child of an element that can't contain it, or
> doing something else that is equally bad.
> 
> Do you agree?

Seems like reasonable behaviour to me.  I just worry though about
interfaces having to change.  For example, SVG 1.2 requires DOM 3 while
SVG 1.1 DOM 2.

  <svg xmlns="http://www.w3.org/2000/svg" version="1.2">
    <script>
      document.documentElement.setAttributeNS(null, "1.1");
      var x = document.compareDocumentPosition;
    </script>
  </svg>

Should the x variable be undefined or a function
(compareDocumentPosition being a method on the Node interface in DOM
Level 3 but not in DOM Level 2)?  Is DOM Level 3 a superset of DOM Level
2?  There are probably also some similar issue wrt the SVG DOM.

Cameron

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922
Received on Friday, 14 January 2005 13:45:41 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:29 GMT