W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2006

appendChild exception missing from standard

From: Hallvord R. M. Steen <hallvord@opera.com>
Date: Sun, 10 Sep 2006 14:26:46 +0200
To: www-dom@w3.org
Message-ID: <op.tfnwuwzga3v5gv@hr-opera>

doesn't say what exception appendChild should throw on invalid input
(such as null or a string). A while ago we at Opera realised that pretty  
everyone else throws an exception that isn't in the spec, (learnt the hard  
way since
not doing so broke Google Reader..) so I suggest the spec is updated to  
cover exceptions due to arguments that are not nodes or document fragments.

(This is also relevant for other DOM functions like replaceChild)

Hallvord R. M. Steen
Core QA JavaScript tester, Opera Software
Opera - simply the best Internet experience
Received on Sunday, 10 September 2006 12:23:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:13 UTC