Closed Bug 302538 Opened 19 years ago Closed 19 years ago

The example code is invalid. document.createTextNode() can not create element nodes.

Categories

(www.mozilla.org :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kravvitz, Assigned: bugzilla)

References

()

Details

Attachments

(1 file)

The example code is invalid. document.createTextNode() can not create element nodes.
I suggest this change:

    var frag = document.createDocumentFragment();
 
    frag.appendChild(    document.createTextNode('Some sample text') );
I will upgrade the whole page at the same time:
- HTML 4.01 strict conversion
- remove parameters section and create a description section
- etc.

The upgraded page's content will be transferred afterwards to
http://developer.mozilla.org/en/docs/DOM:document.createDocumentFragment

CONFIRMING

Target: Before December 1st
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P3
-> me
Assignee: mozilla.webmaster → bugzilla
Status: ASSIGNED → NEW
Please do not update individual pages of the DOM reference. They are generated.
See the larger bug about updating the DOM reference.
This fix the reported bug: I corrected the example with the proposed correction and updated the date.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Blocks: 93108
Product: mozilla.org → Websites
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: