Commit 44604cf
authored
fix: allow 'expanded' attribute in Purifier (#40501)
* fix: allow 'expanded' attribute in Purifier
Allow 'expanded' to be preserved during HTML sanitization. This is needed for amp-accordion (and Bento accordion) when rendered inside templates like amp-mustache, where state attributes on standard tags (like <section>) were being stripped.
Includes test case for standard elements.
* fix: allow 'expanded' attribute in Purifier
Allow 'expanded' to be preserved during HTML sanitization. This is needed for amp-accordion (and Bento accordion) when rendered inside templates like amp-mustache, where state attributes on standard tags (like <section>) were being stripped.
Includes test case for standard elements.
* remove conflict markers
* remove the allowlisting to change the test
* add back allowlist1 parent feb6c2e commit 44604cf
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
| |||
0 commit comments