[Expat-bugs] [ expat-Bugs-1873199 ] CharacterDataHandler ampersand problem

SourceForge.net noreply at sourceforge.net
Sat Jan 19 01:56:55 CET 2008


Bugs item #1873199, was opened at 2008-01-16 21:37
Message generated for change (Comment added) made by hartwork
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1873199&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: Rejected
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Karl Waclawek (kwaclaw)
Summary: CharacterDataHandler ampersand problem

Initial Comment:
If you parse <tagname>A&amp;B</tagname>, the characterdatahandler is called 3 times, each with the nodename of tagname, first with A, then with &, then with B

dan at cappannari.com

----------------------------------------------------------------------

>Comment By: Sebastian Pipping (hartwork)
Date: 2008-01-19 01:56

Message:
Logged In: YES 
user_id=1022691
Originator: NO

Expat is decoding entities on the fly so &amp; is exptected to give "&" in
the char data handler. In case that was not clear already.

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2008-01-16 22:04

Message:
Logged In: YES 
user_id=290026
Originator: NO

This is legal behaviour. You can have multiple call-backs for a contiguous
text string.
This also (if I remember correctly) happens for line breaks.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1873199&group_id=10127


More information about the Expat-bugs mailing list