HTMLnesting::nestingExceptions(3) Is an exception to the general nesting rules allowed?


Bool nestingExceptions( Pair<String, String> ex )


ex A pair of element names in "parent, child" order


Returns true if the nesting exception in the pair is allowed. This is used to add exceptions to the elements where HTMLnesting.pretendEmpty(3kaya) is true (for example, ("ul","li") returns true). Nesting exceptions are not made for the table elements, as editing these via addition of elements would be very error-prone - the specialised table editing functions in HTMLDocument(3kaya) should be used instead.


Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see


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.