Problem/Motivation
Discovered at #3259593-17: Alignment being available as separate buttons AND in dropdown is confusing.
Steps to reproduce
See failing test in #2.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #29 | interdiff-27-29.txt | 535 bytes | nod_ |
| #29 | core-filterhtml-3278636-29.patch | 8.42 KB | nod_ |
| #27 | interdiff-22-27.txt | 1.55 KB | nod_ |
| #27 | core-filterhtml-3278636-27.patch | 8.15 KB | nod_ |
| #22 | core-filterhtml-3278636-22.patch | 6.34 KB | nod_ |
Comments
Comment #2
wim leersComment #4
wim leersAlso ran into this over at #3273983: Do not assume that plugin supporting <tag attr> also supports <tag> in SourceEditingRedundantTags and upgrade path: https://git.drupalcode.org/project/drupal/-/merge_requests/2310/diffs?co....
Comment #5
nod_Fixed for tags, but it's still overwriting attributes config. The logic is very similar to #3274648: HTMLRestrictions::merge() and ::toGeneralHtmlSupportConfig() fail on allowed attribute values that can be interpreted as integers, spending a bit more time on it to make the code look nicer.
Comment #7
nod_Failure is because of a change in the order
Comment #8
nod_So not an order problem. There is a problem in the SourceEditingPluginTest what we test for:
What the expected result is:
The test explicitly expect the duplicate declarations to be overwritten. So going to fix the test so that we expect:
Comment #9
nod_Comment #11
wim leers#8: wow, great catch! 👍
Unrelated failure in
ComposerHookTest::testComposerHooks(). Sounds like a recent10.0.xregression. Queued test against9.5.x.This comment does not seem to match the logic? I think it was just moved, but not updated? 🤔
Comment #12
wim leers#3283795: ComposerHooksTest is broken on latest DrupalCI PHP container fixed that (unrelated) fail on D10. Re-testing.
Comment #13
nod_Comment seems ok to me, still makes sense. Added a little something that might make it clearer. Don't know how to make it better from here though.
Comment #14
wim leers#13: the comment says it's marking
TRUE, but it doesn't do that. I just realized the original location for this comment was similarly confusing though!Further down, it says basically the same thing, but in the actual place where that does happen:
so I propose this, which I think would be clearer:
Comment #15
nod_thanks :)
Comment #16
wim leersComment #18
wim leersUnrelated Layout Builder failure.
Comment #19
alexpottThe patch no longer applies.
Comment #20
mrinalini9 commentedRerolled patch #15 for 10.0.x, please review it.
Comment #22
nod_Comment #23
wim leers🤩 Unit tests are green, I expect all tests to be green, so … 🚢
Comment #24
bnjmnmThere's a @todo mentioning this issue in Media.php
Comment #25
nod_no idea what's supposed to happen in media.php, any idea wim?
Comment #26
wim leersGreat catch, @bnjmnm!
@nod: you're right that the comment is rather terse. It says that if this issue (#3278636) is fixed, we'll be able to update the
Mediaplugin's PHP logic to not useHtmlRestrictionsat all anymore. See #4.So that means changing
to
in
ckeditor5.ckeditor5.ymlandto something far simpler, like:
(This is better, because it reduces the reliance on the technically private
HtmlRestrictionsin the CKEditor 5 plugin implementations that Drupal core contains. The bug that this issue is fixing prevented that!)Comment #27
nod_yep, much simpler.
Comment #28
wim leersComment #29
nod_Comment #31
wim leersUnrelated failure in
Drupal\Tests\quickedit\FunctionalJavascript\LayoutBuilderQuickEditTest::testQuickEditIgnoresDuplicateFields().RTBC, and re-testing.
Comment #32
wim leersI don't think this is at all, this can seriously hamper the DX, as the #27 interdiff proves.
Comment #33
alexpottCommitted 4a16fbe and pushed to 9.4.x. Thanks!
Committed 51bd01d and pushed to 9.5.x. Thanks!
Committed 3682bd2 and pushed to 10.0.x. Thanks! >
Committed f7ef845 and pushed to 10.1.x. Thanks!