Closed
Bug 202119
Opened 21 years ago
Closed 21 years ago
DOM 3 XPath does not work if using default namespace
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: harri.hohteri, Assigned: anthonyd)
Details
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4a) Gecko/20030401 If trying to do an XPath search on a document which has a default namespace defined e.g. <levelone xmlns="urn::hl7-org/cda" ...> the XPath engine will fail to find element "//levelone". If the default namespace is set to e.g. xmlns:cda the "//levelone" will work. Even if I try to create a namespace resolver where I set xmlns:cda to "urn::hl7-org/cda" I still cannot find anything with "//cda:levelone". Reproducible: Always Steps to Reproduce: 1. 2. 3.
Reporter | ||
Comment 1•21 years ago
|
||
Reporter | ||
Comment 2•21 years ago
|
||
Reporter | ||
Comment 3•21 years ago
|
||
Reporter | ||
Comment 4•21 years ago
|
||
This behavior is by design on XPath 1.0.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Updated•11 years ago
|
Component: DOM: Traversal-Range → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•