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 "replaceChild(newChild,oldChild)" method raises a |
||
20 | HIERARCHY_REQUEST_ERR DOMException if this node is of |
||
21 | a type that does not allow children of the type "newChild" |
||
22 | to be inserted. |
||
23 | |||
24 | Retrieve the root node and attempt to replace |
||
25 | one of its children with a newly created Attr node. |
||
26 | An Element node cannot have children of the "Attr" |
||
27 | type, therefore the desired exception should be raised. |
||
28 | |||
29 |
|
||
30 |
|
||
31 | |||
32 | |||
33 | |||
34 | |||
35 | |||
36 | |||
37 | |||
38 | |||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
53 | !DOCTYPE>!-- |