Skip to content

[Issue 2861] - Parse w:bookmarkStart/w:bookmarkEnd tags in Word2007 reader. - #2977

Open
Liam-Broome wants to merge 1 commit into
PHPOffice:masterfrom
Liam-Broome:issue-2861
Open

Liam-Broome wants to merge 1 commit into
PHPOffice:masterfrom
Liam-Broome:issue-2861

Conversation

@Liam-Broome

@Liam-Broome Liam-Broome commented Nov 17, 2026 •

Copy link
Copy Markdown

The Word2007 reader ignored w:bookmarkStart/w:bookmarkEnd tags, so bookmarks written to a document were dropped when reading it back with IOFactory::load.

This change parses w:bookmarkStart elements at both the document body and paragraph level, adding a Bookmark element to the resulting section/paragraph. w:bookmarkEnd is ignored since it only closes the range.

Fixes #2861

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 96.569% (-0.01%) from 96.582% — Liam-Broome:issue-2861 into PHPOffice:master

@Liam-Broome Liam-Broome changed the title Parse w:bookmarkStart/w:bookmarkEnd tags in Word2007 reader [Issue 2861] - Parse w:bookmarkStart/w:bookmarkEnd tags in Word2007 reader. Nov 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Word2007 Reader does not parse w:bookmarkStart/w:bookmarkEnd tags

2 participants