Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#55 Patch for defaultHandler in DTD

closed-accepted
Karl Waclawek
None
5
2002-08-22
2002-08-21
Karl Waclawek
No

This patch fixes the problem of having the default
handler called for DTD declarations, when a
designated handler is already provided.
Check bug #483514: "Default handler reports
handled events".

There is one limitation to this fix:
When there is an entityDeclHandler set, then
predefined and duplicate entity declarations will
be reported only partially by the default handler.
The reason is that at the time when it is detected
that the entity is a predefined one, or that the
declaration is a duplicate, part of the declaration
has already been reported. Example:
Instead of
<!ENTITY quot """>
the default handler will only report
quot"""
For details see the attached overview.

Discussion

  • Karl Waclawek
    Karl Waclawek
    2002-08-21

    Default handler patch

     
    Attachments
  • Karl Waclawek
    Karl Waclawek
    2002-08-21

    Overview of default handler patch

     
    Attachments
  • Karl Waclawek
    Karl Waclawek
    2002-08-22

    Logged In: YES
    user_id=290026

    Passed my own tests as well as the W3C test suite,
    according to what we expect as a result. No change in
    behaviour from release 1.95.4.

    Therefore it seemed OK to apply the patch.

     
  • Karl Waclawek
    Karl Waclawek
    2002-08-22

    • status: open --> closed-accepted