Closed Bug 564047 Opened 14 years ago Closed 14 years ago

"ASSERTION: Nodes that are not documents, document fragments or elements can't be parents" with doctype node

Categories

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

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 613793
mozilla2.0b8

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

Attached file testcase
Similar to bug 558973 (which is fixed) but with a more complicated testcase.

###!!! ASSERTION: Nodes that are not documents, document fragments or elements can't be parents!: 'aParent->IsNodeOfType(nsINode::eDOCUMENT) || aParent->IsNodeOfType(nsINode::eDOCUMENT_FRAGMENT) || aParent->IsElement()', file /Users/jruderman/mozilla-central/content/base/src/nsGenericElement.cpp, line 3863
Bleh, nsDOMDocumentType are nsGenericDOMDataNode but not IsNodeOfType(eDATA_NODE). Should I just add a flag for "can have children"?
Assignee: nobody → peterv
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: --- → mozilla1.9.3a5
Where would we use this flag, other than asserts?
Blocks: 613793
WFM:

JavaScript error: , line 0: uncaught exception: [Exception... "Node cannot be inserted at the specified point in the hierarchy"  code: "3" nsresult: "0x80530003 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)"  location: "https://bug564047.bugzilla.mozilla.org/attachment.cgi?id=443737 Line: 6"]

Fix by the patch in bug 613793, perhaps? I know it made NS_ERROR_DOM_HIERARCHY_REQUEST_ERR occur in some cases where it didn't occur before.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
> Fix by the patch in bug 613793, perhaps? 

Very much so, yes.
No longer blocks: 613793
Resolution: WORKSFORME → DUPLICATE
Assignee: peterv → nobody
Status: RESOLVED → VERIFIED
Target Milestone: mozilla1.9.3a5 → mozilla2.0b8
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: