---
name: "HTMLnesting.nestingExceptions"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTMLnesting.nestingExceptions"
---

# HTMLnesting.nestingExceptions(3kaya)

Is an exception to the general nesting rules allowed?

## 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.
