-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Raw Handling - msListIgnore - Check attributes are valid #60375
Conversation
…e cases where invalid attributes are present
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +7 B (0%) Total Size: 1.73 MB
ℹ️ View Unchanged
|
Should we add that snippet to the integration tests? Where does that "invalid-style" come from? |
Good idea! I'll add that!
Unfortunately, I couldn't find a real case for the reproduction steps so I added |
I mean, if it's not real HTML that comes from MS Word, then no need to add an integration test. I thought their markup changes and that is causing a failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @geriux! 🙇
…e cases where invalid attributes are present (WordPress#60375)
What?
Fixes some edge cases where there are invalid attributes in the
style
attribute. Ideally, there should only be valid values but it looks like this is not the case with MS Word.Why?
There are some crash reports in the mobile editor related to this code.
How?
By checking both
key
andvalue
are notundefined
.Testing Instructions
Paste the following snippet into the Web or Mobile editor:
Testing Instructions for Keyboard
N/A, does not apply.
Screenshots or screencast