googlearchive / caja

Caja is a tool for safely embedding third party HTML, CSS and JavaScript in your website.
Apache License 2.0
1.13k stars 127 forks source link

Add empty/nonempty test cases for html-sanitizer tagPolicy #1638

Open kpreid opened 9 years ago

kpreid commented 9 years ago

Original issue 1638 created by kpreid.switchb.org on 2013-01-28T23:59:48.000Z:

In html-sanitizer-test.js testTagPolicy, add test cases for:

• replacing an empty element with a nonempty one (synthesizes an end tag) • replacing a nonempty element with an empty one (discards an end tag, should not match up to a non-rewritten start tag)

kpreid commented 9 years ago

Comment #1 originally posted by kpreid@google.com on 2013-11-07T21:24:35.000Z:

<empty>