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 normalizeDocument method method acts as if the document was going through a save |
||
25 | and load cycle, putting the document in a "normal" form. |
||
26 | |||
27 | Set the validate feature to true. Invoke the normalizeDocument method on this |
||
28 | document. Retreive the documentElement node and check the nodeName of this node |
||
29 | to make sure it has not changed. Now set validate to false and verify the same. |
||
30 | Register an error handler on this Document and in each case make sure that it does |
||
31 | not get called. |
||
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 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | |||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
70 | !DOCTYPE>!-- |
||
71 | |||
72 |