Change Tracking

In Word, some change-tracking features are displayed in the browser, while others are stored in the HTML.

Change Tracking

Word uses the following elements to mark document-level revision settings: TrackRevisions, DoNotShowRevisions, DoNotPrintRevisions.

Word uses the Ins element to contain inserted text and the Del element to contain deleted text. Both of these elements use the cite attribute to list the author who made the change in the form of a mailto url. Both elements also use the datetime attribute to list the date and time the author made the change in ISO format.

Change Tracking Presentation

To enable proper browser display of change tracking, Word uses the msoIns, msoDel, and msoChangeProp style classes. These style classes emulate the document's change tracking display settings, and Word applies them to changed text using Span elements that immediately contain the changed text. To store information about the change in HTML, Word uses the mso-prop-change attribute.

If deleted text is displayed using the "#" or "^" characters, Word inserts the appropriate deletion display character before the Del element.

Numbered Lists

To mark list items with changed numbering but no changed text in HTML, Word uses the mso-list-change attribute. To mark inserted list paragraphs in HTML, Word uses the mso-list-ins attribute.

Change Tracking for Tables

When tables rows are inserted, deleted, or their properties are changed, Word uses the mso-table-inserted, mso-table-deleted, or mso-table-prop-change attributes to save the change in HTML. Word inserts change information in the style attribute of the Tr element using the following syntax.

<tr style='mso-table-inserted:"AuthorName" DateTime'>

Change Tracking for Changed Formatting

Word tracks and marks certain formatting changes to text. To display formatting changes in HTML, Word uses the msoChangeProp style class in a Span element. To store change information such as author name and date, Word uses the mso-prop-change style attribute.

Change Tracking for LISTNUM Fields

Word uses the mso-field-change style attribute to mark changes to a LISTNUM field value.

For information about the style attributes that Office uses and their possible values, see the Style Attributes topic.