[ttml2] LWSP pruning within elements with non-mixed type content models (#1284)

palemieux has just created a new issue for https://github.com/w3c/ttml2:

== LWSP pruning within elements with non-mixed type content models ==
Character Information Items that contain only LWSP should be pruned from elements whose content model is not mixed, i.e., where `#PCDATA` is not allowed.

In the following example, the LWSP between the start and end tags should be pruned since the content model of `tt` is not mixed type:

```
<tt>


</tt>
```

Now, per https://www.w3.org/TR/ttml2/#ttml-content-doctype :

> pruning character information item children from any remaining element in case that all character children of the element denote XML whitespace characters and the element's type is defined as empty in the associated abstract document type, and then

LWSP are only pruned if _ the element's type is defined as empty _, which is not the case for `tt`.

Consider rewording to:

> pruning character information item children from any remaining element in case that all character children of the element denote XML whitespace characters and the element's content model is not mixed, i.e., does not allow #PCDATA.


Please view or discuss this issue at https://github.com/w3c/ttml2/issues/1284 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 21 April 2026 17:42:03 UTC