.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "HTMLDocument.InvalidNesting" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" HTMLDocument::InvalidNesting \- The specified range causes invalid nesting .SH "SYNOPSIS" .B HTMLDocument::InvalidNesting( \fIString\fP .B ) .SH "ARGUMENTS" .PP .B "" The String contains details of the error .SH "DESCRIPTION" .PP This Exception is thrown by .B "HTMLDocument.addInlineElementAt"(3kaya) if the start or end positions would cause invalid nesting. .IP "" -4 p = addParagraph(parent,"This paragraph"); em = addInlineElementAt(p,Emphasis,3,7); code = addInlineElementAt(p,ComputerCode,6,9); // this attempts to make

This paragraph

// which is invalid, and so an Exception is thrown. .PP This Exception is also thrown by several other functions if you try to add an element inside another element which cannot contain it. .IP "" -4 p = addParagraph(parent,""); list = addList(p,Unordered,0); // lists cannot be contained inside paragraphs, so an exception is thrown .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.