Closed (fixed)
Project:
Drupal core
Version:
8.9.x-dev
Component:
filter.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Jun 2020 at 08:20 UTC
Updated:
21 Aug 2020 at 23:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ashishdalviI will be picking this issue today.
Comment #3
dwwFlesh out Remaining tasks.
Comment #4
ashishdalviComment #5
shetpooja04 commentedComment #6
shetpooja04 commentedI have worked on issue as per the issue description
Comment #8
alexpottLet's call this $keys_not_to_copy as $blocklist or the original term is not actually that helpful here.
We can remove the terms between the brackets. They're not necessary.
allowed
allowed
and there are no forbidden tags, the effectively nothing is allowed.
Let's go with:
allowed
I think we can remove the "according to a list". There's a parameter called $allowed_attributes - I think that's enough.
The list of allowed attributes as an array...
the list of allowed attributes.
the list of allowed tags more specific.
allowing
The list of allowed values for the 'dir' attribute...
allowed.
This is a strange @todo - it would be nice to rewrite this with using the allowlist term.
allowed tags
allow
allowed
Comment #9
deepak goyal commentedComment #10
deepak goyal commentedHi @alexpott
Made changes as you suggested please review.
And #8.16 is pending I am not getting this.
Comment #11
deepak goyal commentedComment #12
alexpottThe comment needs re-flowing now.
it'swill fit on the previous line now.There's a double space in front of and.
Remove attributes not in the list of allowed attributes.
Check the allowed attribute value list.
Can re-flow comment. I think "case" now fits on the preceding line.
As we changing this line we can remove the double space after the fullstop.
I think
might work here.
Comment #13
deepak goyal commentedComment #14
deepak goyal commentedHi @alexpott
Made changes as you suggested please review.
For #12.5 "case" is not fits on the preceding line.
Comment #15
dwwAlmost there, thanks! Just a few lingering things, then this is RTBC:
A) 80 char flow: "and" can move up to the previous line.
B) s/the/then/ effectively...
'Filters' needs an 's'. Also, I think it's still worth mentioning the allowed list. Something like:
"Filters attributes on an element according to an allow list." (or something).
But otherwise, we're done. Before:
After:
(and for good measure):
Comment #16
ravi.shankar commentedHere I have addressed #15.1 and #15.2 points of comment #15.
Comment #17
dwwExcellent, thanks!
Comment #18
quietone commentedI was curious to know what words whitelist and blacklist were being replaced with and found that the IS states 'TBD'. So I looked at the patch for answer and that raised questions.
Surely 'allow' is a verb and not an adjective. Instead of 'allow list' maybe 'listed of allowed values'?
Shouldn't this be 'Check the list of allowed of attribute values'?
For the IS the proposed resolution needs to be updated with the suggested replacements for whitelist/blacklist. The remaining tasks section shows that there are 5 tasks still to do. Is that one tasks queries the need for BC but there is nothing in the issue that addresses that point.
Sorry, back to NW.
Comment #19
dwwThanks, @quietone! Right you are. I even bothered to make a good list of remaining tasks, then didn't check we got them all. Updated.
core/modules/filter/filter.module was a false positive, so I removed it. Everything else is indeed gone (per greps at the end of #15).
Re: specific review points in #18:
edof allowed values"ofattribute values."otherwise, +1 to those improvements.
Thanks again,
-Derek
Comment #20
dwwNow it just needs RTBC. ;)
Comment #21
quietone commented@derek, thanks for the changes.
I reviewed the interdiff and the suggested changes were agreed to and made. The IS has been updated. Yeah, I don't have to read the whole patch to learn the solution!
Back to RTBC
Comment #22
alexpottCommitted 1d44c8e and pushed to 9.1.x. Thanks!
Will backport once the release is out and the freeze is over.
Comment #24
alexpottOops meant to leave this at RTBC
Comment #25
alexpottCommitted and pushed aca70f2cd2 to 9.0.x and 7fafcd6952 to 8.9.x. Thanks!
Backported to 8.9.x as this is docs and internal variable names only.
Comment #28
alexpott