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 "setNamedItem(arg)" method raises a |
||
20 | WRONG_DOCUMENT_ERR DOMException if "arg" was created |
||
21 | from a different document than the one that created |
||
22 | the NamedNodeMap. |
||
23 | |||
24 | Create a NamedNodeMap object from the attributes of the |
||
25 | last child of the third employee and attempt to add |
||
26 | another Attr node to it that was created from a |
||
27 | different DOM document. This should raise the desired |
||
28 | exception. This method uses the "createAttribute(name)" |
||
29 | method from the Document interface. |
||
30 | |||
31 |
|
||
32 |
|
||
33 | |||
34 | |||
35 | |||
36 | |||
37 | |||
38 | |||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | !DOCTYPE>!-- |