a6429f8c22
Completely removed the html5lib sanitizer. Fixed the string-handling to work in both Ruby 1.8.x and 1.9.2. There are still, inexplicably, two functional tests that fail. But the rest seems to work quite well.
376 lines
8.9 KiB
Plaintext
Executable file
376 lines
8.9 KiB
Plaintext
Executable file
{"tests": [
|
|
|
|
{"description": "unknown start tag <foo>",
|
|
"input": "<foo>",
|
|
"fail-unless": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <code>",
|
|
"input": "<code>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <kbd>",
|
|
"input": "<kbd>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <aside>",
|
|
"input": "<aside>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <datagrid>",
|
|
"input": "<datagrid>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <font>",
|
|
"input": "<font>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <noscript>",
|
|
"input": "<noscript>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <style>",
|
|
"input": "<style>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <img>",
|
|
"input": "<img>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <title>",
|
|
"input": "<title>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <menu>",
|
|
"input": "<menu>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <tr>",
|
|
"input": "<tr>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <param>",
|
|
"input": "<param>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <li>",
|
|
"input": "<li>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <source>",
|
|
"input": "<source>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <tfoot>",
|
|
"input": "<tfoot>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <th>",
|
|
"input": "<th>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <td>",
|
|
"input": "<td>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <dl>",
|
|
"input": "<dl>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <blockquote>",
|
|
"input": "<blockquote>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <dd>",
|
|
"input": "<dd>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <abbr>",
|
|
"input": "<abbr>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <dt>",
|
|
"input": "<dt>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <noembed>",
|
|
"input": "<noembed>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <p>",
|
|
"input": "<p>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <small>",
|
|
"input": "<small>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <meter>",
|
|
"input": "<meter>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <em>",
|
|
"input": "<em>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <meta>",
|
|
"input": "<meta>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <video>",
|
|
"input": "<video>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <div>",
|
|
"input": "<div>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <canvas>",
|
|
"input": "<canvas>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <sub>",
|
|
"input": "<sub>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <section>",
|
|
"input": "<section>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <sup>",
|
|
"input": "<sup>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <progress>",
|
|
"input": "<progress>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <body>",
|
|
"input": "<body>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <base>",
|
|
"input": "<base>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <br>",
|
|
"input": "<br>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <address>",
|
|
"input": "<address>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <article>",
|
|
"input": "<article>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <strong>",
|
|
"input": "<strong>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <legend>",
|
|
"input": "<legend>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <event-source>",
|
|
"input": "<event-source>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <ol>",
|
|
"input": "<ol>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <script>",
|
|
"input": "<script>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <caption>",
|
|
"input": "<caption>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <dialog>",
|
|
"input": "<dialog>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <col>",
|
|
"input": "<col>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <h2>",
|
|
"input": "<h2>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <h3>",
|
|
"input": "<h3>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <h1>",
|
|
"input": "<h1>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <h6>",
|
|
"input": "<h6>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <h4>",
|
|
"input": "<h4>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <h5>",
|
|
"input": "<h5>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <header>",
|
|
"input": "<header>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <table>",
|
|
"input": "<table>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <span>",
|
|
"input": "<span>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <area>",
|
|
"input": "<area>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <dfn>",
|
|
"input": "<dfn>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <var>",
|
|
"input": "<var>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <cite>",
|
|
"input": "<cite>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <thead>",
|
|
"input": "<thead>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <head>",
|
|
"input": "<head>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <hr>",
|
|
"input": "<hr>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <link>",
|
|
"input": "<link>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <datatemplate>",
|
|
"input": "<datatemplate>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <b>",
|
|
"input": "<b>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <colgroup>",
|
|
"input": "<colgroup>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <ul>",
|
|
"input": "<ul>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <del>",
|
|
"input": "<del>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <iframe>",
|
|
"input": "<iframe>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <pre>",
|
|
"input": "<pre>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <figure>",
|
|
"input": "<figure>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <ins>",
|
|
"input": "<ins>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <tbody>",
|
|
"input": "<tbody>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <html>",
|
|
"input": "<html>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <nav>",
|
|
"input": "<nav>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <details>",
|
|
"input": "<details>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <samp>",
|
|
"input": "<samp>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <map>",
|
|
"input": "<map>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <nest>",
|
|
"input": "<nest>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <object>",
|
|
"input": "<object>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <a>",
|
|
"input": "<a>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <footer>",
|
|
"input": "<footer>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <i>",
|
|
"input": "<i>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <m>",
|
|
"input": "<m>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <rule>",
|
|
"input": "<rule>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <q>",
|
|
"input": "<q>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <command>",
|
|
"input": "<command>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <time>",
|
|
"input": "<time>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <audio>",
|
|
"input": "<audio>",
|
|
"fail-if": "unknown-start-tag"},
|
|
|
|
{"description": "allowed start tag <bdo>",
|
|
"input": "<bdo>",
|
|
"fail-if": "unknown-start-tag"}
|
|
|
|
]}
|