OZONE Asylum
Forums
DHTML/Javascript
Ghosts in the machine: Removed nodes still in the way when making another text selection
This page's ID:
30945
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I haven't looked into your script to see where exactly it's going wrong, but I would guess that it's getting hung up on the extra text nodes created. Each time your script runs on a text node it's inserting new elements into the DOM splitting the text into 3 separate nodes. Try calling normalize() on the parent node after removing the inserted elements, it should merge the text nodes together again.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »