w:compat (Compatibility Settings)

Container for compatibility flags that toggle legacy rendering behavior for interoperability with older processors.

Parent elements

Description

w:compat is a container element in w:settings that holds compatibility settings governing how the document is rendered in different versions of Word. It is defined in ECMA-376 Part 1 §17.15.1.21.

The most important child is w:compatSetting (with w:name="compatibilityMode"), which controls which version of Word’s layout engine is used. For example, value 15 targets Word 2013+, 14 targets Word 2010, and 12 targets Word 2007.

Attributes

Attribute Type Possible Values Description
(none) All compatibility options are expressed via w:compatSetting child elements.

Examples

<w:compat>
  <w:compatSetting
    w:name="compatibilityMode"
    w:uri="http://schemas.microsoft.com/office/word"
    w:val="15"/>
</w:compat>