Closed Bug 819798 Opened 13 years ago Closed 13 years ago

Element.setAttribute(attr, null); now sets the attribute to the string "null" instead of the empty string

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.17

People

(Reporter: neil, Assigned: neil)

References

Details

(Keywords: regression)

Attachments

(1 file)

So far there are two places where this is a problem: 1. The MsgStatusFeedback object's default status is null, so when it is first used the status text displays as "null". Fortunately it gets reset to "" on line 340. 2. The email address nodes are set to values returned from the message header parser, which returns null when the address does not have the requested component. The "null" value is then read back from the attributes in various places.
Attached patch Proposed patchSplinter Review
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #690224 - Flags: review?(mnyromyr)
Can you elaborate a bit on "now"? All I find is bug 667856, and it hasn't even been near check-in yet?
(In reply to Karsten Düsterloh from comment #2) > Can you elaborate a bit on "now"? It's a regression, so as per standard practice I put the bug that caused the regression in the "Blocks" field. Also the "Depends on" field is the Thunderbird version of the bug, which includes a bit more information, e.g. in the 21st comment thereof.
Now setAttribute() stringify the values because of the Paris bindings migration. So nsIDOMElement doesn't matter.
Attachment #690224 - Flags: review?(mnyromyr) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: