Js / DOM / HTML questions
-
This is probably aimed at ThomThom:
Does MSIE 8, support DOM Level 3 ?
What I'm I'm wondering is if I can do this, for cross-platform:
%(#8000BF)[document.head]EDIT:
%(#BF4000)["document.head is null or not an object"]instead of:
%(#8000BF)[document.getElementsByTagName('head')[0]].. and the other question is:
Do both Safari (latest ver,) and MSIE 8 support the
%(#8000BF)[insertBefore]method (which I'd like to use, instead of the%(#8000BF)[appendChild]method.) -
hm... I do not remember. I've been using jQuery for the last few years now. It's taken care of most my DOM cross platform worries. I now deal pretty much exclusively with the jQuery API and I just get things done instead of messing about with the awkward DOM API.
Probably not quite the answer you where looking for, but really, using a framework for dealing with the DOM is a completely different world and it'll save your hairs from going grey.
-
I know this.. you've said it before.
This is different... I'm injecting a line (A SINGLE LINE,) of html from the Ruby side -
I see.
Quirks mode is really nice for looking up compatibility:
http://www.quirksmode.org/dom/w3c_core.html#t92I often just google the keyword followed by "quirksmode" and the top result is usually from quirksmode.org.
-
Holy WoW! That's a great site !
I've been hoping for something like that for Ruby, so we can see when methods are valid.
-
@dan rathbun said:
What I'm I'm wondering is if I can do this, for cross-platform:
%(#8000BF)[document.head]OK I understand now (those new MSDN pages are so confusing!)
%(#8000BF)[document.head]is part of HTML 5.http://stackoverflow.com/questions/7557868/document-head-document-body-to-attach-scripts
and
http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-head
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement