peter
Guest
|
On the JavaScript / DOM side of things, what would you like Microsoft to include in version 7?
|
|
|
|
Well, include all functions that other browsers include, that it does not. Like, I believe you said that it doesn't support .createTreeWalker().
|
|
|
|
|
Everything. Support it all.
|
|
|
|
|
Hehe...how about insertAfter(); (I hope that exists) XDD
|
|
|
|
|
Hmm.... That'd be a damn awesome function.... maybe Peter can prototype it? All you ahve to do is Object.nextSibling.insertBefore() though.
|
|
|
|
|
But for lazy, wannabe coders like me: Object.insertAfter(); is better
|
|
|
|
|
|
I would love for it to be compatable with all CSS. I would also enjoy a free default spyware, popup, and virus blocker. Links based on most often visited sites. Stop fucking up every now and then. No errors, ever, EVER!
I think that's all that matters, and if that were implemented than bye bye FF will go.
|
|
|
|
I would love for it to be compatable with all CSS. I would also enjoy a free default spyware, popup, and virus blocker. Links based on most often visited sites. Stop fucking up every now and then. No errors, ever, EVER! I think that's all that matters, and if that were implemented than bye bye FF will go. He said on the DOM / JS side of things. And same as Alien.
|
|
|
|
Firefox's DOM inspector is pretty awesome. IE might have that too... I wish, then I would use IE
|
|
|
|
Firefox's DOM inspector is pretty awesome. IE might have that too... I wish, then I would use IE Check a few threads down. There's a toolbar that has it.
|
|
|
|
peter
Guest
|
Hmm.... That'd be a damn awesome function.... maybe Peter can prototype it? All you ahve to do is Object.nextSibling.insertBefore() though. FF supports extending the DOM, IE doesn't. But here you go ... <span>fdsfs<i id="a">fdsfs</i><i>fdsfs</i></span>
<script type="text/javascript"> <!--
Node.prototype.insertAfter = function(newNode){ if(newNode){ if(this.parentNode){ if(this.nextSibling)){ this.parentNode.insertBefore(newNode, this.nextSibling); } else { this.parentNode.appendChild(newNode); } } } }
document.getElementById("a").insertAfter(document.createTextNode("weeeee"));
//--> </script>
Last Edit: Sept 28, 2005 15:36:23 GMT by peter
|
|
|
|
Well damn, I thought IE did.... stupid IE.... >_> Nice code though Peter.
|
|
|
|
peter
Guest
|
Well damn, I thought IE did.... stupid IE.... >_> Nice code though Peter. Why I hate IE so much, you can't extend the DOM, can't prototype to the Node, only allows basic stuff like Date, String, Function, Array etc IE doesn't even support some sort of Get and Set method
Last Edit: Sept 28, 2005 15:44:29 GMT by peter
|
|
|
|
Get? Like PHP $_GET? >_>
|
|
|
|