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 439 - try construct needed in markup
Summary: try construct needed in markup
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: Process (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-17 14:26 UTC by Curt Arnold
Modified: 2003-12-18 07:33 UTC (History)
0 users

See Also:


Attachments
Adds try construct to DTD, schema and test generation code (13.21 KB, patch)
2003-12-17 14:28 UTC, Curt Arnold
Details
Refinement of Java and ECMAScript production (6.36 KB, patch)
2003-12-18 00:25 UTC, Curt Arnold
Details

Description Curt Arnold 2003-12-17 14:26:58 UTC
DOMBuilderTest1-4 in L3 L&S and other tests can not be written using the 
existing assertDOMException construct.  In DOMBuilderTest1-4, parseWithContext 
can either throw a NOT_SUPPORTED_ERR or perform the requested action.  Other 
tests may have multiple allowable return codes which this construct would 
support, though it would be better to rewrite the test so that only one error 
in applicable.

Basically,

<try>
    <!--  one or more statements  -->
    <catch>
         <!--  one of more exception clauses   -->
         <DOMException code="NOT_SUPPORTED_ERR">
              <!--  one or more statements   -->
         </DOMException>
    </catch>
</try>
Comment 1 Curt Arnold 2003-12-17 14:28:48 UTC
Created attachment 118 [details]
Adds try construct to DTD, schema and test generation code
Comment 2 Curt Arnold 2003-12-18 00:25:19 UTC
Created attachment 120 [details]
Refinement of Java and ECMAScript production