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.
Properties
Section titled “Properties”author?
Section titled “author?”
readonlyoptionalauthor?:string
Defined in: src/core/document-model/types.ts:346
authorId?
Section titled “authorId?”
readonlyoptionalauthorId?:string
Defined in: src/core/document-model/types.ts:355
The author’s resolved identity (usually an email) from word/people.xml
(w15:person → w15:presenceInfo/@w15:userId), matched on the author name.
Absent when the file ships no people part or the author is not listed.
content
Section titled “content”
readonlycontent: readonlyBodyElement[]
Defined in: src/core/document-model/types.ts:345
readonlyoptionaldate?:string
Defined in: src/core/document-model/types.ts:349
Raw w:date timestamp (ISO 8601), as authored — not reformatted.
readonlyoptionaldone?:boolean
Defined in: src/core/document-model/types.ts:363
w15:done — the comment thread was marked resolved.
initials?
Section titled “initials?”
readonlyoptionalinitials?:string
Defined in: src/core/document-model/types.ts:347
parentId?
Section titled “parentId?”
readonlyoptionalparentId?: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.