summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-02-03 11:35:58 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-03 11:36:09 +0000
commiteb25ac12499d70f7ebd59b64857e6901a5c32972 (patch)
treee6755949ec3f059fcbe5110213cea3d2ef07a506 /spec
parent33bbb6aa7b6369fea0037f3d8a9243824e48f64f (diff)
downloadgitlab-ce-eb25ac12499d70f7ebd59b64857e6901a5c32972.tar.gz
Add latest changes from gitlab-org/security/gitlab@14-7-stable-ee
Diffstat (limited to 'spec')
-rw-r--r--spec/frontend/notebook/cells/output/html_sanitize_fixtures.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/spec/frontend/notebook/cells/output/html_sanitize_fixtures.js b/spec/frontend/notebook/cells/output/html_sanitize_fixtures.js
index 803ac4a219d..70c7f56b62f 100644
--- a/spec/frontend/notebook/cells/output/html_sanitize_fixtures.js
+++ b/spec/frontend/notebook/cells/output/html_sanitize_fixtures.js
@@ -16,13 +16,20 @@ export default [
'text/html table',
{
input: [
- '<table>\n',
+ '<style type="text/css">\n',
+ '\n',
+ 'body {\n',
+ ' background: red;\n',
+ '}\n',
+ '\n',
+ '</style>\n',
+ '<table data-myattr="XSS">\n',
'<tr>\n',
'<th>Header 1</th>\n',
'<th>Header 2</th>\n',
'</tr>\n',
'<tr>\n',
- '<td>row 1, cell 1</td>\n',
+ '<td style="background: red;">row 1, cell 1</td>\n',
'<td>row 1, cell 2</td>\n',
'</tr>\n',
'<tr>\n',