Scroll to navigation

HTMLnesting.nestingExceptions(3kaya) Kaya module reference HTMLnesting.nestingExceptions(3kaya)

NAME

HTMLnesting::nestingExceptions - Is an exception to the general nesting rules allowed?

SYNOPSIS

Bool nestingExceptions( Pair<String, String> ex )

ARGUMENTS

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

DESCRIPTION

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.

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

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.
August 2014 Kaya