Closed
Bug 248172
Opened 20 years ago
Closed 20 years ago
XMLSerializer corrupts namespace prefixes when XHTML namespace is used
Categories
(Core :: XML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bedney, Assigned: peterv)
References
Details
(Keywords: fixed-aviary1.0, fixed1.7.5, regression)
Attachments
(2 files, 1 obsolete file)
3.77 KB,
text/html
|
Details | |
1.68 KB,
patch
|
peterv
:
review+
peterv
:
superreview+
mkaply
:
approval1.7.5+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 The XMLSerializer corrupts namespace prefixes when the XHTML namespace is used. Note that the DOM itself contains the correct namespace information (i.e. you can poke around and get 'namespaceURI's and 'prefix's) but the serializer corrupts the output. Note that this did not occur in Mozilla 1.6 and earlier. This is a new bug for Mozilla 1.7. Reproducible: Always Steps to Reproduce: 1.Run testcase 2.Note the errors in the testcase (its well documented) 3. Actual Results: Got incorrect serialization results. Expected Results: Correctly serialized the input. Check the testcase. There's 4 separate testcases. The first 2 work, the last 2 don't. Note again that this is a Mozilla 1.7 issue.
Reporter | ||
Comment 1•20 years ago
|
||
Assignee | ||
Comment 2•20 years ago
|
||
Jonas: shouldn't the GetNodeInfo call in nsGenericHTMLElement::SetAttrAndNotify (http://lxr.mozilla.org/seamonkey/source/content/html/content/src/nsGenericHTMLElement.cpp#1664) use aPrefix?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 3•20 years ago
|
||
Assignee: hjtoi-bugzilla → peterv
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•20 years ago
|
||
Comment on attachment 151528 [details] [diff] [review] v1 This seems like the right thing and it fixes the bug. I can't think of anything that this could be breaking, you?
Attachment #151528 -
Flags: review?(bugmail)
Comment on attachment 151528 [details] [diff] [review] v1 I think there is some other bug filed on this issue, or at least it was talked about in some other bug. The same problem exists in XUL. r=me if you fix it there too.
Attachment #151528 -
Flags: review?(bugmail) → review+
Updated•20 years ago
|
Keywords: regression
Comment 6•20 years ago
|
||
Comment on attachment 151528 [details] [diff] [review] v1 sr=jst
Attachment #151528 -
Flags: superreview+
Assignee | ||
Comment 7•20 years ago
|
||
Note that we probably get the wrong attribute for the mutation events (see http://bugzilla.mozilla.org/show_bug.cgi?id=232009#c4).
Assignee | ||
Comment 8•20 years ago
|
||
Attachment #151528 -
Attachment is obsolete: true
Assignee | ||
Comment 9•20 years ago
|
||
Comment on attachment 151669 [details] [diff] [review] Patch that was checked in Carrying forward r/sr and asking for branch approval: trivial fix so that attributes in XHTML and XUL elements don't lose their prefix. Low-risk.
Attachment #151669 -
Flags: superreview+
Attachment #151669 -
Flags: review+
Attachment #151669 -
Flags: approval1.7.1?
Comment 10•20 years ago
|
||
Comment on attachment 151669 [details] [diff] [review] Patch that was checked in a=mkaply for 1.7.1
Attachment #151669 -
Flags: approval1.7.1? → approval1.7.1+
Assignee | ||
Comment 11•20 years ago
|
||
Checked in to trunk and 1.7 branch.
Updated•20 years ago
|
Whiteboard: needed-aviary1.0?
Comment 12•20 years ago
|
||
AVIARY_1_0_20040515_BRANCH does not checkin yet.
Updated•20 years ago
|
Whiteboard: needed-aviary1.0?
Reporter | ||
Comment 14•20 years ago
|
||
I have been remiss in thanking everyone involved, especially Peter, for fixing this bug so quickly. This was a showstopper for my product under 1.7. Thanks guys! Cheers, - Bill
You need to log in
before you can comment on or make changes to this bug.
Description
•