| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c64a111 commit ff7fa37
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,13 @@ | |||
| 1 | 1 | Change Log | |
| 2 | 2 | ---------- | |
| 3 | 3 | ||
| 4 | + 1.2 | ||
| 5 | + ~~~ | ||
| 6 | + | ||
| 7 | + Bug fixes: | ||
| 8 | + | ||
| 9 | + * The sanitizer now permits ``<summary>`` tags. | ||
| 10 | + | ||
| 4 | 11 | 1.1 | |
| 5 | 12 | ~~~ | |
| 6 | 13 | ||
@@ -22,7 +29,6 @@ Other changes: | |||
| 22 | 29 | ``html5lib`` keeps working in future Python versions. (#403) | |
| 23 | 30 | * Drop optional ``datrie`` dependency. (#442) | |
| 24 | 31 | ||
| 25 | - | ||
| 26 | 32 | 1.0.1 | |
| 27 | 33 | ~~~~~ | |
| 28 | 34 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -113,6 +113,7 @@ | |||
| 113 | 113 | (namespaces['html'], 'strike'), | |
| 114 | 114 | (namespaces['html'], 'strong'), | |
| 115 | 115 | (namespaces['html'], 'sub'), | |
| 116 | + (namespaces['html'], 'summary'), | ||
| 116 | 117 | (namespaces['html'], 'sup'), | |
| 117 | 118 | (namespaces['html'], 'table'), | |
| 118 | 119 | (namespaces['html'], 'tbody'), | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,6 +111,18 @@ def param_sanitizer(): | |||
| 111 | 111 | """<img src="%s:%s">foo</a>""" % (protocol, rest_of_uri)) | |
| 112 | 112 | ||
| 113 | 113 | ||
| 114 | + def test_details_open_allowed(): | ||
| 115 | + sanitized = sanitize_html("<details open>.</details>") | ||
| 116 | + expected = '<details open>.</details>' | ||
| 117 | + assert expected == sanitized | ||
| 118 | + | ||
| 119 | + | ||
| 120 | + def test_details_summary_allowed(): | ||
| 121 | + sanitized = sanitize_html("<details><summary>.</summary><p>...</p></details>") | ||
| 122 | + expected = '<details><summary>.</summary><p>...</p></details>' | ||
| 123 | + assert expected == sanitized | ||
| 124 | + | ||
| 125 | + | ||
| 114 | 126 | @pytest.mark.parametrize("expected, input", | |
| 115 | 127 | (pytest.param(expected, input, id=id) | |
| 116 | 128 | for id, expected, input in param_sanitizer())) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments