1HTMLDocument.InvalidNesting(3kKaayyaa)module refeHrTeMnLcDeocument.InvalidNesting(3kaya)
2
3
4
6 HTMLDocument::InvalidNesting - The specified range causes invalid nest‐
7 ing
8
10 HTMLDocument::InvalidNesting( String
11
13 The String contains details of the error
14
16 This Exception is thrown by HTMLDocument.addInlineElementAt (3kaya) if
17 the start or end positions would cause invalid nesting.
18
19
20 p = addParagraph(parent,"This paragraph");
21 em = addInlineElementAt(p,Emphasis,3,7);
22 code = addInlineElementAt(p,ComputerCode,6,9);
23 // this attempts to make <p>Thi<em>s p<code>a</em>ra</code>graph</p>
24 // which is invalid, and so an Exception is thrown.
25
26 This Exception is also thrown by several other functions if you try to
27 add an element inside another element which cannot contain it.
28
29
30 p = addParagraph(parent,"");
31 list = addList(p,Unordered,0);
32 // lists cannot be contained inside paragraphs, so an exception is thrown
33
35 Kaya standard library by Edwin Brady, Chris Morris and others
36 (kaya@kayalang.org). For further information see http://kayalang.org/
37
39 The Kaya standard library is free software; you can redistribute it
40 and/or modify it under the terms of the GNU Lesser General Public
41 License (version 2.1 or any later version) as published by the Free
42 Software Foundation.
43
44
45
46Kaya December 201H0TMLDocument.InvalidNesting(3kaya)