Project

Profile

Help

Bug #3203

closed

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

Added by John Lumley about 7 years ago. Updated over 6 years ago.

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

100%

Estimated time:
Applies to JS Branch:
1.0
Fix Committed on JS Branch:
1.0
Fixed in JS Release:
SEF Generated with:
Platforms:
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

Actions #1

Updated by John Lumley almost 7 years ago

  • Status changed from New to Resolved
Actions #2

Updated by Debbie Lockett over 6 years 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
Actions #3

Updated by Debbie Lockett over 6 years 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