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 | |||
20 | The "setAttributeNode(newAttr)" method raises an |
||
21 | |||
22 | "WRONG_DOCUMENT_ERR DOMException if the "newAttr" |
||
23 | |||
24 | was created from a different document than the one that |
||
25 | |||
26 | created this document. |
||
27 | |||
28 | |||
29 | |||
30 | Retrieve the last employee and attempt to set a new |
||
31 | |||
32 | attribute node for its "employee" element. The new |
||
33 | |||
34 | attribute was created from a document other than the |
||
35 | |||
36 | one that created this element, therefore a |
||
37 | |||
38 | WRONG_DOCUMENT_ERR DOMException should be raised. |
||
39 | |||
40 | This test uses the "createAttribute(newAttr)" method |
||
41 | |||
42 | from the Document interface. |
||
43 | |||
44 | |||
45 |
|
||
46 |
|
||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | |||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | !DOCTYPE>!-- |