Closed Bug 272814 Opened 21 years ago Closed 21 years ago

beginAddingChildren notification should be called before attributeSet.

Categories

(Core Graveyard :: XTF, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20041126 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20041126 I think beginAddingChildren notification should be called before the first attributeSet. This way it is easier to support dynamic DOM modifications. Patch coming. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Attached patch fix (obsolete) — Splinter Review
Attachment #167660 - Flags: superreview?(bryner)
Attachment #167660 - Flags: review?(bryner)
Blocks: 271737
but an attribute is not really a child of an element is it?
no, it is not, but this is just about ordering of the notifications. we could also add again one new notification, called startParsingContent or something, or rename beginAddingChildren, or even more, add two notifications beginAddingAttributes, doneAddingAttributes. But I don't think those are really needed.
Comment on attachment 167660 [details] [diff] [review] fix makes sense to me. r=darin but, can you please add documentation to nsIXTFElement explaining the relationship of this event to the other events?
Attachment #167660 - Flags: review?(bryner) → review+
Attachment #167660 - Attachment is obsolete: true
Attachment #167686 - Flags: superreview?(bryner)
Attachment #167660 - Flags: superreview?(bryner)
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee: alex → smaug
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Blocks: 272406
Attachment #167686 - Flags: superreview?(bryner) → superreview+
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: