Skip to content

Conversation

oleibman
Copy link
Collaborator

See issue #2301. The main problem in that issue had been introduced with 18.0 and had already ben fixed in master. However there was a subsequent problem that had been introduced in master, an undotted i uncrossed t with namespace handling. When using namespaces, need to call attributes() to access the attributes before trying to access them directly. Failure to do so in parseRichText caused fonts declared in Rich Text elements to be ignored.

This is:

- [x] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

See issue PHPOffice#2301. The main problem in that issue had been introduced with 18.0 and had already ben fixed in master. However there was a subsequent problem that had been introduced in master, an undotted i uncrossed t with namespace handling. When using namespaces, need to call attributes() to access the attributes before trying to access them directly. Failure to do so in parseRichText caused fonts declared in Rich Text elements to be ignored.
Addresses problem in 2301 that had already been fixed.
@oleibman oleibman merged commit 90b9dec into PHPOffice:master Sep 27, 2021
daedeloth added a commit to daedeloth/PhpSpreadsheet that referenced this pull request Dec 21, 2021
…ably related to a namespace change and - according to commit log - issue PHPOffice#2303)
daedeloth added a commit to daedeloth/PhpSpreadsheet that referenced this pull request Dec 21, 2021
…ably related to a namespace change and - according to commit log - issue PHPOffice#2303)

Use SimpleXMLElement::count() instead of the native count function to avoid code style issues.
@oleibman oleibman deleted the namexlsx7 branch February 13, 2022 09:02
BlackyTay pushed a commit to BlackyTay/PhpSpreadsheet that referenced this pull request Aug 8, 2025
…e#2303)

* Xlsx Reader Better Namespace Handling Phase 1 Second Bugfix

See issue PHPOffice#2301. The main problem in that issue had been introduced with 18.0 and had already ben fixed in master. However there was a subsequent problem that had been introduced in master, an undotted i uncrossed t with namespace handling. When using namespaces, need to call attributes() to access the attributes before trying to access them directly. Failure to do so in parseRichText caused fonts declared in Rich Text elements to be ignored.

* Add An Assertion

Addresses problem in 2301 that had already been fixed.
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.

1 participant