August 2000
Beginner
456 pages
9h 24m
English
| Q1: | When a node is to be added to a nodelist, what are the advantages and disadvantages to performing the two-step process of creating the node and then inserting it? |
| A1: | The disadvantage is obvious—it takes two steps to do what could be done in one step. The advantage is the standard one in computing, where a complex task is broken up into several simpler ones. This makes it more difficult to make accidental insertions and deletions. |
| Q2: | Why are the methods of the document and node objects so similar? |
| A2: | The document object is in fact a node with certain specific components that make it the document. Therefore, whenever you treat it as just another instance of a node, you're using the same properties that the node object has. |
| Q3: |
Read now
Unlock full access