Skip to content

Comment

Defined in: src/core/document-model/types.ts:344

ECMA-376 Part 1 §17.13.4.2 w:comment — a review comment: its block content plus the author/date attribution. Anchored from a run’s commentRef.

readonly optional author?: string

Defined in: src/core/document-model/types.ts:346


readonly optional authorId?: string

Defined in: src/core/document-model/types.ts:355

The author’s resolved identity (usually an email) from word/people.xml (w15:personw15:presenceInfo/@w15:userId), matched on the author name. Absent when the file ships no people part or the author is not listed.


readonly content: readonly BodyElement[]

Defined in: src/core/document-model/types.ts:345


readonly optional date?: string

Defined in: src/core/document-model/types.ts:349

Raw w:date timestamp (ISO 8601), as authored — not reformatted.


readonly optional done?: boolean

Defined in: src/core/document-model/types.ts:363

w15:done — the comment thread was marked resolved.


readonly optional initials?: string

Defined in: src/core/document-model/types.ts:347


readonly optional parentId?: string

Defined in: src/core/document-model/types.ts:361

Microsoft commentsExtended (w15) — the id of the comment this one replies to, forming a thread. Set only when word/commentsExtended.xml links this comment’s paragraph to a parent (w15:paraIdParent). Top-level comments omit it.