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 836 - LS wellformed tests require implementation-specific error types
Summary: LS wellformed tests require implementation-specific error types
Status: NEW
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-08-09 03:54 UTC by Andrew Clover
Modified: 2004-08-09 07:54 UTC (History)
0 users

See Also:


Attachments

Description Andrew Clover 2004-08-09 03:54:30 UTC
The DOM Level 3 LS tests:

  wellformed1
  wellformed2
  wellformed3

require that a DOMError be generated with a specific type string
(wf-invalid-character[-in-node-name]).

However the spec does not (IMO) require this. Other than the specific error
types defined in the description of LSParser, no mention is given to what
particular DOMErrors a parse failure should produce -

  "implementations are expected to raise implementation specific errors and
warnings for any other error and warning cases such as [...] XML well-formedness
errors"

For example a parser might see "<h×2/>", parse the node name as "h" (correctly
according to the XML Name production) and then complain that the next character
"×" didn't match the expected space-or-attribute-or-end-of-element, a parsing
error that doesn't correspond to wf-invalid-character-in-node-name.

If non-well-formed documents should be required to generate any DOMErrors at
parse-time at all, there is IMO little that the spec mandates can be asserted
about them. Perhaps just 'there should be at least one DOMError with ERROR or
FATAL_ERROR severity'.