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

Comment/Suggestion: DOM L3 L&S

From: <Duncan_Stodart@insession.com>
Date: Fri, 30 Aug 2002 13:32:36 +1100
To: www-dom@w3.org
Message-ID: <OFF2FE892C.F083431C-ONCA256C25.000D5B79-CA256C25.000E13B9@LocalDomain>
With the current interfaces there is good no way for a calling application 
to programatically decide what action to take according to the reason for 
parsing failure.

My suggestion is to extent the exising DOMError interface to include two 
more read only attributes: domain (DOMString) and error code (unsigned 
short).  W3C could define a set of general error codes that parser 
implementations can choose to implement, but allows different 
implementations to extend the error code set in seperate domains.  This 
way calling applications can look at the domain and error code and easily 
make a decision on what action to take (eg poorly formed XML versus I/O 
error versus validation error).
Received on Thursday, 29 August 2002 22:55:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT