diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-03-06 19:27:56 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-03-06 19:27:56 +0000 |
commit | 03b310895b2a41a7cc8331fac6f3e9c9f9687a26 (patch) | |
tree | a01d8e2ad426ae4e92ce9a8636a8212c742110eb /spec/features | |
parent | 79b8f02bb1780b3de9eb01d69aa3ff59954d5324 (diff) | |
parent | 9a672c4f81984e07ab2c0c0c456c798adff91514 (diff) | |
download | gitlab-ce-03b310895b2a41a7cc8331fac6f3e9c9f9687a26.tar.gz |
Merge branch '21605-allow-html5-details' into 'master'
SanitizationFilter allows html5 details and summary (Issue #21605)
Closes #21605
See merge request !6568
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/copy_as_gfm_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/markdown_spec.rb | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/copy_as_gfm_spec.rb b/spec/features/copy_as_gfm_spec.rb index fec86128d03..fbab4fa9c4f 100644 --- a/spec/features/copy_as_gfm_spec.rb +++ b/spec/features/copy_as_gfm_spec.rb @@ -275,6 +275,10 @@ describe 'Copy as GFM', feature: true, js: true do <rp>rp</rp> <abbr>abbr</abbr> + + <summary>summary</summary> + + <details>details</details> GFM ) diff --git a/spec/features/markdown_spec.rb b/spec/features/markdown_spec.rb index 32159559c37..894df13a2dc 100644 --- a/spec/features/markdown_spec.rb +++ b/spec/features/markdown_spec.rb @@ -115,6 +115,14 @@ describe 'GitLab Markdown', feature: true do expect(doc).to have_selector('span:contains("span tag")') end + it 'permits details elements' do + expect(doc).to have_selector('details:contains("Hiding the details")') + end + + it 'permits summary elements' do + expect(doc).to have_selector('details summary:contains("collapsible")') + end + it 'permits style attribute in th elements' do aggregate_failures do expect(doc.at_css('th:contains("Header")')['style']).to eq 'text-align: center' |