Project

Profile

Help

Bug #3203

Default namespace XHTML not appearing in namespace-uri-from-prefix()

Added by John Lumley 10 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
2017-04-14
Due date:
% Done:

100%

Applies to JS Branch:
1.0
Fix Committed on JS Branch:
1.0
Fixed in JS Release:
SEF Generated with:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

When the default namespace has been set to xmlns="http://www.w3.org/1999/xhtml" some (but not all) browsers return "" for namespace-uri-from-prefix('',$context) - Chrome does, Firefox doesn't - it returns the XHTML URI.

The issue appears that element.lookupNamespaceURI("") isn't consistent across browsers. https://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI suggests using null to recover the default namespace.

Patch applied to CoreFn.namespace-uri-for-prefix

History

#1 Updated by John Lumley 9 months ago

  • Status changed from New to Resolved

#2 Updated by Debbie Lockett 7 months ago

  • Found in version deleted (1)
  • Applies to branch deleted (9.8)
  • Applies to JS Branch 1.0 added
  • Fix Committed on JS Branch 1.0 added

#3 Updated by Debbie Lockett 7 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to Saxon-JS 1.0.1

Bug fix applied in Saxon-JS 1.0.1 maintenance release.

Please register to edit this issue

Also available in: Atom PDF Tracking page