-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
HTML API: Backport updates from Core #54481
Conversation
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/compat/wordpress-6.4/html-api/class-gutenberg-html-tag-processor-6-4.php ❔ lib/compat/wordpress-6.3/html-api/class-gutenberg-html-tag-processor-6-3.php ❔ lib/compat/wordpress-6.4/html-api/class-wp-html-processor.php ❔ lib/load.php |
0960b13
to
1f53506
Compare
7c3776c
to
7437a75
Compare
@dmsnell I pushed a commit excluding the file from WPCS checks since it's maintained in Core and not Gutenberg. That should fix the failing tests 👍 |
f943e07
to
9fddb81
Compare
@aristath thank you so much! this exclusion can remove a major obstacle I've had in keeping momentum on the HTML API. should we expand it to all the HTML API files?
I'm not sure if the wildcards work that way or not 🤷♂️ I've really struggled with communication here, because I try to find people actively working in the same places I am developing, but I've had a hard time going the opposite direction and flagging things early enough to avoid headache for people coming into where I'm actively working who don't reach out in the same way. I figure this is going to keep coming up, and with the WPCS 3.0 changes, we're creating the situation where the CI job prevents us from reverting bugs, and I'd love it if we can avoid that; redirect everyone to WordPress/wordpress-develop where this code "lives". |
@aristath I've gone ahead and expanded that exclusion because once I pulled in updates for the 6.4 release track, it immediately rejected this again 🙃 feel free to add more commits if you think something should be different. please note, however, that I did rebase the branch, so you will want to hard-reset/pull from |
d70db1f
to
47a8be3
Compare
47a8be3
to
7734551
Compare
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 👍
7734551
to
5171ca5
Compare
(will merge as soon as the tests pass before someone merges into trunk - it's a thing in order to sign the commit) |
666410b
to
8b63073
Compare
8b63073
to
98c1f71
Compare
Pulling over work on the HTML API from Core: - bug fix: stop parsing tags inside of STYLE, IFRAME, and other RAWTEXT elements. - bug fix: stay on track when document ends in the middle of processing a tag. - bug fix: remove all copies of an attribute when duplicates exist on a tag. - bug fix: stop processing in the HTML Processor when encountering unsupported markup - reverts changes made in #53866 which introduced a bug during a styling refactor. - update docblock comments through HTML API. This patch also excludes the HTML API folders in the compatability layer from WPCS inspection, since this code is maintained, reviewed, and accepted into Core and brought back into Gutenberg. Changes to the code need to be made first in Core and brought over as blessed backport changes. Co-authored-by: Ari Stathopoulos <aristath@gmail.com> Co-authored-by: Bernie Reiter <96308+ockham@users.noreply.github.com>
98c1f71
to
e1a88b3
Compare
Flaky tests detected in e1a88b3. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6326435591
|
What?
Pulling over work on the HTML API from Core:
trunk
but not to the 6.3 branch.Why?
The HTML API is being developed and maintained in Core and backported into Gutenberg. This is a periodic and "blessed" PR where the code has already been reviewed and accepted; merging into Gutenberg is simply accepting what has already been adopted.
How?
Pulls files from Core and adds a Gutenberg prefix where required.
Testing Instructions
Please review how we're updating the Tag Processor in 6.3 and also in 6.4.
Do we need to make this
Gutenberg_HTML_Processor_6.4
now that it extends theGutenberg_HTML_Tag_Processor_6_4
? IsGutenberg_HTML_Tag_Processor_6_4
even needed?