Project

Profile

Help

Bug #2357

closed

StreamWriterToReceiver.startElement(localName)

Added by Michael Kay about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
Start date:
2015-04-10
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

When the method StreamWriterToReceiver.startElement(localName) is called, it is immediately translated into a call on Receiver.startElement(). However, the translation is incorrect, because the default namespace is not yet known, and Receiver.startElement() expects a NodeName object that includes both the namespace and the local name. The StreamWriter interface notifies namespace declarations AFTER the call on startElement.

Found in 9.7 after making changes to the way serialization works; no repro in 9.6 as yet, but the code is clearly incorrect.

Please register to edit this issue

Also available in: Atom PDF