Closed Bug 308478 Opened 19 years ago Closed 19 years ago

[FIX]lookupPrefix on default namespace returns "xmlns"

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: stryker330, Assigned: bzbarsky)

References

()

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4

Calling lookupPrefix with the namespace URI of a default namespace in a XHTML
document returns "xmlns" instead of null.

Reproducible: Always

Steps to Reproduce:
document.documentElement.lookupPrefix('http://www.w3.org/1999/xhtml')
Actual Results:  
"xmlns"

Expected Results:  
null
Attached file testcase
Attached patch Proposed patchSplinter Review
Assignee: general → bzbarsky
Status: UNCONFIRMED → ASSIGNED
Attachment #207716 - Flags: superreview?(peterv)
Attachment #207716 - Flags: review?(peterv)
OS: Windows XP → All
Priority: -- → P3
Hardware: PC → All
Summary: lookupPrefix on default namespace returns "xmlns" → [FIX]lookupPrefix on default namespace returns "xmlns"
Target Milestone: --- → mozilla1.9alpha
Attachment #207716 - Flags: superreview?(peterv)
Attachment #207716 - Flags: superreview+
Attachment #207716 - Flags: review?(peterv)
Attachment #207716 - Flags: review+
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: DOM: Core → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: