Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3584 | sourcerer | 1 | |
2 | |||
13 | |||
14 | |||
15 | |||
16 |
|
||
17 |
|
||
18 | |||
19 | The "setAttributeNode(newAttr)" method adds a new |
||
20 | attribute to the Element. If the "newAttr" Attr node is |
||
21 | already present in this element, it should replace the |
||
22 | existing one. |
||
23 | |||
24 | Retrieve the last child of the third employee and add a |
||
25 | new attribute node by invoking the "setAttributeNode(new |
||
26 | Attr)" method. The new attribute node to be added is |
||
27 | "class", which is already present in this element. The |
||
28 | method should replace the existing Attr node with the |
||
29 | new one. This test uses the "createAttribute(name)" |
||
30 | method from the Document interface. |
||
31 | |||
32 | |||
33 |
|
||
34 | |||
35 | |||
36 | |||
37 | |||
38 | |||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | !DOCTYPE>!-- |