Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3584 | sourcerer | 1 | |
2 | |||
3 | |||
17 | |||
18 | |||
19 | |||
20 | |||
21 |
|
||
22 |
|
||
23 | |||
24 | The method replaceWholeText substitutes the a specified text for the text of |
||
25 | the current node and all logically-adjacent text nodes. This method raises |
||
26 | a NO_MODIFICATION_ALLOWED_ERR if one of the Text nodes being replaced is readonly. |
||
27 | |||
28 | Invoke replaceWholeText on an existing text node with newly created text and Entityreference |
||
29 | nodes (whose replacement text is a character entity reference) appended as children of its parent element node. |
||
30 | Where the nodes to be removed are read-only descendants of an EntityReference, the EntityReference |
||
31 | must be removed instead of the read-only nodes. Only if any EntityReference to be removed has |
||
32 | descendants that are not EntityReference, Text, or CDATASection nodes, the replaceWholeText |
||
33 | method must fail, raising a NO_MODIFICATION_ALLOWED_ERR. Verify that the method does not raise |
||
34 | an exception and verify the content of the returned text node. |
||
35 | |||
36 |
|
||
37 |
|
||
38 | |||
39 | |||
40 | |||
41 | |||
42 | |||
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 | !DOCTYPE>!-- |