w:delText (Deleted Text Content)
Contains the text content of a deleted run inside a w:del revision-tracking element.
Parent elements
Description
w:delText holds the text content of a run that is marked as deleted in a revision-tracked document. It is defined in ECMA-376 Part 1 §17.3.3.7.
w:delText appears inside a w:r that itself is a child of w:del. Unlike w:t, which holds current text, w:delText signals that this text was present in a previous revision and has since been removed, but the deletion has not yet been accepted.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
xml:space |
XML standard | preserve |
Preserves leading/trailing whitespace in deleted text. Use when the deleted text begins or ends with a space. |
Examples
<w:del w:id="1" w:author="Jane" w:date="2024-01-15T09:00:00Z">
<w:r>
<w:delText>old text</w:delText>
</w:r>
</w:del>
new Delete(
new Run(
new DeletedText("old text")));
Notes
w:delTextmust not appear outside aw:delelement.- Accept the deletion by removing the
w:delwrapper; reject it by removingw:delbut keeping thew:rwithw:tin its place.