Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xlsx Reader Better Namespace Handling Phase 1 Second Bugfix #2303

Merged
merged 3 commits into from
Sep 27, 2021

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
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