Closed Bug 411882 Opened 17 years ago Closed 15 years ago

"ASSERTION: No first node!" with <textarea> after <body>

Categories

(Core :: DOM: Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

84 bytes, application/xhtml+xml
Details
Attached file testcase
Loading the testcase triggers: ###!!! ASSERTION: No first node!: 'mFirst', file /Users/jruderman/trunk/mozilla/content/base/src/nsContentIterator.cpp, line 971
This is an editor bug. nsTextServicesDocument::InitWithEditor (called by nsEditorSpellCheck::InitSpellChecker when we set up the textarea) calls nsTextServicesDocument::CreateDocumentContentIterator which calls nsTextServicesDocument::CreateDocumentContentRange which calls nsTextServicesDocument::GetDocumentContentRootNode, which uses the body for "html" documents (including XHTML), and the document element for others. Then the iterator looks for the first node in the root node, and asserts when there isn't one.
Component: Layout: Form Controls → Editor
QA Contact: layout.form-controls → editor
FWIW, bug 328412 fixed an instance of this assertion involving Find, but did not fix this one.
WFM
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: