Content deleted Content added
Line 115:
<blockquote>'''The DOM is also accessed by''' [[Cascading Style Sheets]] or CSS. CSS can change the display of a webpage by '''addressing''' elements in its DOM and '''altering''' how they are rendered.</blockquote>
--[[User:Nigelj|Nigelj]] ([[User talk:Nigelj|talk]]) 12:39, 8 December 2011 (UTC)
::Awesome, thanks for the feedback! Yeah, sorry, I should've mentioned that I was intentionally leaving out the citations; just trying to get the wording right. I'm still working on that part. I don't have extremely official sources yet, but most of what I said is contained in [http://www.youtube.com/watch?v=WxmcDoAxdoY the talk] I mentioned above (by a member of Google Developer Relations), and [http://www.html5rocks.com/en/tutorials/internals/howbrowserswork/#DOM this article] (on a Google-produced site about HTML5).
::As for the edits, they mostly sound good, though there are a few places where I'd ask for rewording:
::*"..elements are what '''the HTML tags represent'''.." I'd actually prefer the original phrasing of "..elements are what HTML tags are marking..". To me, at least, it's a little more straightforward. Plus, I think the former is a bit less accurate. I know you didn't mean this, but I think your version is too easy to mistake for "the tags are the elements" rather than "the tags mark where to make a DOM element and what information to add to it." Of course, according to the [http://www.youtube.com/watch?v=WxmcDoAxdoY&t=25m13s very explanation] I'm taking this from, I should get punched in the face for correcting someone on this minutiae.
::*"..in a [[webpage]] it builds '''an object model of the document, a''' DOM for the page, usually in memory from its tag structure." Could I rearrange this to keep it less unwieldy? Perhaps "..in a [[webpage]] it builds a DOM for the page in memory from its tag structure: an object model of the document." in fact, I didn't know about the idea of generic object models. I think this could be worth expanding in a later section.
::*"'''The DOM of a webpage needs to be distinguished''' from its markup because of [[client-side scripting]].." What I was trying to get at was that the effect of Javascript altering the DOM is another reason the DOM ends up usually being different from the plain HTML. But I don't think I phrased it well. How about "The DOM of a webpage is often distanced further from its markup by the effect of [[client-side scripting]].."?
::--[[User:Qwerty0|Qwerty0]] ([[User talk:Qwerty0|talk]]) 08:06, 11 December 2011 (UTC)
|