OZONE Asylum
Forums
DHTML/Javascript
IE JS/DOM performance degradation weirdness
This page's ID:
27610
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 just mean that innerHTML makes for "hacks". As I said, I used it a lot because I am comfortable with quirky code, but writing reusable code using innerHTML? The next geek will have to be an Asylumnite to even try and read your code. All html objects can be treated as objects through DOM methods like createChildNode, appendChild, setAttribute, getAttribute, and these are the methods that make for clean content rewrite. In school, we are strongly encouraged to avoid hacks and foster readability/reusability: sparing the next code monkey the hassle of reversing my code and reading it has started to matter. This said, plain text processing through innerHTML still is very fast. And non-standard, as bit pointed out. And ugly.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »