Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: common/data/text/sanitizehtml/sanitize_test.go

Issue 2873983003: sanitizehtml: disallow tables (Closed)
Patch Set: simplify Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/data/text/sanitizehtml/sanitize.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/data/text/sanitizehtml/sanitize_test.go
diff --git a/common/data/text/sanitizehtml/sanitize_test.go b/common/data/text/sanitizehtml/sanitize_test.go
index 179e3af93650022100511067de244ceac579ae40..1ae33067cba64d6385e97b45ff5405f66f3b5383 100644
--- a/common/data/text/sanitizehtml/sanitize_test.go
+++ b/common/data/text/sanitizehtml/sanitize_test.go
@@ -80,28 +80,6 @@ func TestSanitize(t *testing.T) {
`&lt;<a rel="noopener" target="_blank" href="about:invalid#sanitized&amp;reason=disallowed-scheme"></a>`,
},
- // Tables
- {
- `<table>
- <tr colspan="2">
- <td rowspan=2>a</td>
- </tr>
- <tr style="">
- <td>b</td>
- <td>c</td>
- </tr>
- </table>`,
- `<table>
- <tr colspan="2">
- <td rowspan="2">a</td>
- </tr>
- <tr>
- <td>b</td>
- <td>c</td>
- </tr>
- </table>`,
- },
-
// Other
{
`<div><strong>hello</strong></div>`,
« no previous file with comments | « common/data/text/sanitizehtml/sanitize.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698