DOM

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

document

All access to the DOM originates with the _______ object.

F

Although the window is accessible anywhere, the document object is not. T/F

tree

Browser uses a ________ to organize the parts of a page

white space

Browser variation for text nodes are due to __________

legacy DOM

DOM before standardization

F, not part of the JavaScript language

DOM is a language agnostic, so it is part of the JavaScript language. T/F

F

Every node object does not have a nodeType property. T/F

read-only

Given a reference to any element node, you can navigate from that node to others as needed using several _________ properties.

F

HTMLCollection is 'live', which means the user has to manually update the changes they made to the DOM object. T/F

T

HTMLCollection is array-like which means it has similar properties of arrays, maybe more or maybe less. T/F

T

The DOM can be manipulative that is it can be modified, moved, deleted, read and/or inserted. T/F

T

The DOM represents the contents of their currently displayed document. T/F

Structure, presentation and behavior

The DOM unifies the three separate layers of a typical web page, what are the three layers?

T

NodeList is different from HTMLCollection such that NodeList is not live and it has one less method. T/F

T

Other than the body, all other properties of the legacy DOM is live. T/F

T

Since the DOM is a live representation of the document, any changes made to it are immediately reflected in the browser's rendering of the document. T/F

T

Since the content is embedded within the structure, that too is accessible through the DOM. T/F

Trees (hierarchies)

__________ organize complex info.

descendant

a child and its children is referred to as _________ of the parent

F

all browsers will generate the same text nodes at the same places in the DOM. T/F

T

each element node has an attributes property that contains an array-like collection of attribute objects, each with its own name and value properties. T/F

leaf node

if a childNode has a length of zero, it is referred to as ________

sibling

if the head and body nodes have the same parent node, they can be referred to as __________

Element, text, attribute, and document nodes

Types of nodes

F

Unlike arrays, HTMLCollection can never be empty. T/F

W3C

What organization standardized the DOM?

T

Without the DOM, JavaScript would be far less useful. T/F

F

Without the DOM, the modern web as we know it could still exist. T/F

Document Object Module

A collection of objects provided by the browser environment.

T

There is a JavaScript-specific Application Programming Interface (API) for accessing the DOM. T/F

Tree structure

How is the DOM organized?

F, they are also included

In the DOM all the content, elements, and their attributes within the current document are not included but separately accessible. T/F

T

The entire DOM is accessible via the document node. T/F

T

The interfaces to things like MyCourses, Gmail, Microsoft Office 365, and Adobe Creative Cloud simply would not be possible in their current form without the DOM. T/F

F

The nature of the API is determined more by the W3C standard than the DOM standard. T/F

nodeValue and textContent

The property or properties that represent the content of a node is/are:

T

parentNode and children only reference element nodes, but the others may reference element nodes and/or text nodes. T/F

Embedded program

program that runs in another program

body, images, links, anchors, and forms

properties of legacy DOM

document.getElementById(), document.getElementByTagName(), document.getElementByClassName(), document.querySelector(), document.querySelectorAll()

standardized functions used to access element node in a DOM tree


Kaugnay na mga set ng pag-aaral

bio ap classroom questions unit 2

View Set

History of Physical Activity - Chapter 5

View Set

Evolve Adaptive Quiz - Management of Care for Clients with Psychiatric Conditions

View Set