This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 544 - domconfigerrorhandler1 not supportable under Python
Summary: domconfigerrorhandler1 not supportable under Python
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 3 (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-19 10:07 UTC by Andrew Clover
Modified: 2004-02-19 18:20 UTC (History)
0 users

See Also:


Attachments
Removed canSetParameter('error-handler', true) (1.38 KB, patch)
2004-02-19 13:18 UTC, Curt Arnold
Details

Description Andrew Clover 2004-02-19 10:07:08 UTC
The 'cantSetTrue' assertion in domconfigerrorhandler1 relies on the
implementation being able to tell the difference between boolean values and
ErrorHandler types. However this is not necessarily possible in a
dynamically-typed language such as Python.

Officially, IDL boolean is still bound to Python integer, however in the
meantime integer has become a type that can be extended (eg. by the new native
boolean type in Python 2.3), so it's entirely possible to have an object that's
both a boolean and an ErrorHandler! There are arbitrary approaches one could
take to detecting non-handler objects (eg. method-sniffing), but in the absence
of static typing there's no watertight solution.
Comment 1 Curt Arnold 2004-02-19 13:18:10 UTC
Created attachment 235 [details]
Removed canSetParameter('error-handler', true)