Closed
Bug 73681
Opened 23 years ago
Closed 13 years ago
RANGE:Child Nodes of Attr Nodes have a parentNode property set to null.
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: pbwiz, Assigned: Ms2ger)
References
Details
(Whiteboard: [C][range][embed])
Attachments
(3 files)
521 bytes,
text/html
|
Details | |
3.57 KB,
patch
|
Details | Diff | Splinter Review | |
1.78 KB,
patch
|
Details | Diff | Splinter Review |
I have found that ALL child nodes of an Attr node have there parentNode set to null. This should not be. Only the Attr node should have a parentNode set to null. I believe this bug is causing bug #73552. Without this bug fixed I cannot patch up the Range object. Attaching test case. Jeff Yates
Reporter | ||
Comment 1•23 years ago
|
||
Updated•23 years ago
|
Comment 2•23 years ago
|
||
This is hardly a blocker. I have no time to fix this, patches accepted as always if this is important.
Severity: blocker → normal
OS: other → All
Hardware: PC → All
Target Milestone: --- → Future
it is a blocker johnny, it blocks 73552. its coo though, i know your swamped, ill try to get around to it. anthonyd
moving to 0.9.2, gotta get range sorted out. anthonyd
Status: NEW → ASSIGNED
Summary: Child Nodes of Attr Nodes have a parentNode property set to null. → RANGE:Child Nodes of Attr Nodes have a parentNode property set to null.
fooled you! now im REALLY setting it to 0.9.2. anthonyd
Target Milestone: Future → mozilla0.9.2
Comment 8•23 years ago
|
||
Anthony, seems like you know what the deal is here, over to you.
Assignee: jst → anthonyd
Status: ASSIGNED → NEW
Updated•23 years ago
|
Target Milestone: mozilla0.9.3 → mozilla1.0
setting to 0.9.3 getting range spec up to snuff seems to be a never ending battle. anthonyd
Status: NEW → ASSIGNED
Target Milestone: mozilla1.0 → mozilla0.9.3
Updated•23 years ago
|
Target Milestone: mozilla0.9.3 → mozilla1.0
Comment 12•23 years ago
|
||
Bulk move of mozilla1.0 bugs to mozilla.1.0.1. I will try to pull some of these back in if I can.
Target Milestone: mozilla1.0 → mozilla1.0.1
Comment 13•23 years ago
|
||
Need more info, but this seems to be not so important anymore. Marking P4. If you need this functionality please speak up, and we will reconsider. This *might* get fixed by the attribute revamp, whenever that happens.
Priority: -- → P4
Comment 14•22 years ago
|
||
This does make javascript manipulation of optgroup form elements a might bit frustrating.
Comment 15•22 years ago
|
||
How does this affect optgroups at all??
Comment 16•20 years ago
|
||
If people still want this, I'm willing to do it.. I've got a working patch, but I'm not sure it's the right way to do it. The problem is that nsDOMAttribute doesn't implement nsIContent, so nsIContent::SetParent(nsIContent *) doesn't work.. so I have added SetParentAttribute to nsITextContent and mParentAttr to nsGenericDataNode. Though I'm sure that's not an option because of space concerns, I don't see any other way. Thoughts?
Comment 17•18 years ago
|
||
I might be able to work on this. nsITextContent::SetParentAttr(nsIAttribute * parentAttr), maybe
Updated•17 years ago
|
Assignee: kinmoz → general
Priority: P4 → --
QA Contact: stummala → ian
Target Milestone: Future → ---
The first thing that needs to be changed for this is to make nsIContent::BindToTree take an nsINode* rather than an nsIContent* as aParent argument. Possibly we could then remove the nsIDocument* aDocument argument too. Next thing is to check that none of the callers to GetNodeParent doesn't assume that the returned node is an nsIDocument if it isn't an nsIContent. But I think that should be the case. Once that is done we could even make the attribute observe itself and call SetAttr if the underlying textnode is changed.
Comment 19•14 years ago
|
||
Testcase passes in a stock Firefox 3.6 build: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 WFM?
Comment 20•14 years ago
|
||
qawanted: Obviously, we need to test to see if this happens on the other platforms. I wonder if we have a mochitest for this already. If not, I'd like to see this bug's testcase converted to a mochitest.
Keywords: qawanted
Assignee | ||
Updated•14 years ago
|
Depends on: AttrExodus
Assignee | ||
Comment 21•13 years ago
|
||
Comment 22•13 years ago
|
||
Why do we want that test? Aren't we aiming to make Attr not be Node?
Yes! Let's not put any more work into Attr-nodes before we make them not be Nodes.
Assignee | ||
Comment 24•13 years ago
|
||
WFM
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•13 years ago
|
Attachment #515468 -
Flags: review?(bzbarsky)
You need to log in
before you can comment on or make changes to this bug.
Description
•