Project

Profile

Help

Bug #2184

closed

With a DOM with unknown baseURI, unparsed-entity-uri() throws a NullPointerException

Added by Michael Kay about 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DOM Interface
Sprint/Milestone:
Start date:
2014-10-15
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 unparsed-entity-uri() or unparsed-entity-public-id() is called on a DOM tree with no known base URI, a NullPointerException is thrown.

Reported here:

https://saxonica.plan.io/boards/2/topics/6017?r=6024

Occurs in 9.6 and previous releases.

The correct action to take is not clear from the spec. For the TinyTree and LinkedTree, Saxon returns the relative URI unresolved, and I am patching the DOM implementation to do the same. A spec bug has been raised:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27061

Please register to edit this issue

Also available in: Atom PDF