#input e "A" #expected h "" #input e "a" #expected h "" #input e "A" "" "foo" #expected h "" #input e "a" "" "foo" #expected h "" #input e "a" "x" #expected h "" #input e "A" "x" #expected h "" #input e "a" a "href" #expected h "" #input e "a" a "href" "\\" #expected h "" #input e "a" a "HREF" #expected h "" #input e "a" a "href" "" "x" "foo" #expected h "" #input e "a" a "href" "" "X" "foo" #expected h "" #input e "a" a "href" "\"" #expected h "" #input e "a" a "href" "&<>" #expected h "" #input e "input" a "type" "&<>" #expected h "" #input e "bdo" a "dir" "&<>" #expected h "" #input e "input" a "disabled" "&<>" #expected h "" #input e "input" a "disabled" #expected h "" #input e "input" a "disabled" "DISABLED" #expected h "" #input e "input" a "tabindex" "&<>" #expected h "" #input e "input" a "tabindex" #expected h "" #input e "li" a "value" "&<>" #expected h "
  • " #input e "li" a "value" "-2" #expected h "
  • " #input e "a" a "style" "/*&<>*/" #expected h "" #input e "a" a "style" #expected h "" #input e "a" a "style" " background:white;;" #expected h "" #input e "a" a "onclick" #expected h "" #input e "font" a "color" #expected h "" #input e "font" a "color" " asdfy789asod23" #expected h "" #input e "a" a "onclick" " return:false;;" #expected h "" #input e "table" a "border" #expected h "
    " #input e "area" a "coords" #expected h "" #input e "area" a "coords" "1 ,, 23asdfwer4.9 0x12" #expected h "" #input e "img" a "usemap" "foo" #expected h "" #input e "img" a "usemap" "foo#bar" #expected h "" #input e "html" a "xmlns" "" "" "http://www.w3.org/2000/xmlns/" #expected h "" #input e "html" a "xmlns" "http://www.w3.org/1999/xhtml" "" "http://www.w3.org/2000/xmlns/" #expected h "" #input e "html" a "xmlns" "foo" "" "http://www.w3.org/2000/xmlns/" #expected h "" #input e "object" a "codebase" #expected h "" #input e "object" a "codebase" "foo" #expected h "" #input e "object" a "classid" #expected h "" #input e "object" a "classid" "foo" #expected h "" #input e "html" a "lang" "eN" #expected h "" #input e "html" a "dir" "ltR" #expected h "" #input e "meta" a "http-equiv" "content-typE" #expected h "" #input e "body" a "text" "blacK" #expected h "" #input e "body" a "vlink" "#00fF00" #expected h "" #input e "div" a "align" "lefT" #expected h "
    " #input e "link" a "media" " alL and foo" #expected h "" #input e "form" a "accept-charset" "utF-8" #expected h "
    " #input e "form" a "method" "geT" #expected h "
    " #input e "img" a "name" "foO" #expected h "" #input e "input" a "type" "texT" #expected h "" #input e "ol" a "type" "i A" #expected h "
      " #input e "style" a "type" "" #expected h "" #input e "style" a "type" "text/csS" #expected h "" #input e "a" a "accesskey" #expected h "" #input e "a" a "accesskey" "a" #expected h "" #input e "a" a "accesskey" "A b" #expected h "" #input e "br" "" "foo" t "x" #expected h "
      x
      " #input e "BR" t "x" #expected h "
      x
      " #input e "br" "x" t "x" #expected h "" #input e "area" t "x" #expected h "" #input e "base" t "x" #expected h "" #input e "basefont" t "x" #expected h "" #input e "bgsound" t "x" #expected h "" #input e "br" t "x" #expected h "
      " #input e "col" t "x" #expected h "" #input e "embed" t "x" #expected h "" #input e "frame" t "x" #expected h "" #input e "hr" t "x" #expected h "
      " #input e "img" t "x" #expected h "" #input e "input" t "x" #expected h "" #input e "link" t "x" #expected h "" #input e "meta" t "x" #expected h "" #input e "param" t "x" #expected h "" #input e "spacer" t "x" #expected h "" #input e "wbr" t "x" #expected h "" #input e "keygen" t "x" #expected h "x" #input e "isindex" t "x" #expected h "x" #input e "nextid" t "x" #expected h "x" #input e "pre" #expected h "
      "
      
      #input
      e "textarea"
      #expected
      h ""
      
      #input
      e "pre" "" "foo"
      #expected
      h "
      "
      
      #input
      e "PRE"
      #expected
      h "
      "
      
      #input
      e "pre" "x"
      #expected
      h "
      "
      
      #input
      e "xmp"
      #expected
      h ""
      
      #input
      e "listing"
      #expected
      h ""
      
      #input
      e "plaintext"
      #expected
      h "</plaintext>"
      
      #input
      e "plaintext"
        e "a"
      #expected
      h "<plaintext><a></a></plaintext>"
      
      #input
      e "plaintext"
      e "a"
      #expected
      h "<plaintext></plaintext><a></a>"
      
      #input
      e "plaintext"
        t "\"&<>"
      #expected
      h "<plaintext>\"&<></plaintext>"
      
      #input
      e "plaintext"
      t "\"&<>"
      #expected
      h "<plaintext></plaintext>&quot;&amp;&lt;&gt;"
      
      #input
      e "style"
        t "/*\"&<>*/"
      #expected
      h "<style>/*\"&<>*/</style>"
      
      #input
      e "script"
        t "/*\"&<>*/"
      #expected
      h "<script>/*\"&<>*/</script>"
      
      #input
      e "xmp"
        t "\"&<>"
      #expected
      h "<xmp>\"&<></xmp>"
      
      #input
      e "iframe"
        t "\"&<>"
      #expected
      h "<iframe>\"&<></iframe>"
      
      #input
      e "noembed"
        t "\"&<>"
      #expected
      h "<noembed>\"&<></noembed>"
      
      #input
      e "noframes"
        t "\"&<>"
      #expected
      h "<noframes>\"&<></noframes>"
      
      #input
      e "noscript"
        t "\"&<>"
      #expected
      h "<noscript>\"&<></noscript>"
      
      #input
      e "style" "x"
        t "/*\"&<>*/"
      #expected
      h "<x:style>/*\"&<>*/</x:style>"
      
      #input
      e "style" "" "foo"
        t "/*\"&<>*/"
      #expected
      h "<style>/*&quot;&amp;&lt;&gt;*/</style>"
      
      #input
      e "STYLE"
        t "/*\"&<>*/"
      #expected
      h "<STYLE>/*&quot;&amp;&lt;&gt;*/</STYLE>"
      
      #input
      e "style"
        s "/*\"&<>*/"
      #expected
      h "<style>/*\"&<>*/</style>"
      
      #input
      e "xmp"
        e "a"
          t "\"&<>"
      #expected
      h "<xmp><a>\"&<></a></xmp>"
      
      #input
      s "\"&<>"
      #expected
      h "&quot;&amp;&lt;&gt;"
      
      #input
      c "\"&<>"
      #expected
      h "<!--\"&<>-->"
      
      #input
      c ""
      #expected
      h "<!---->"
      
      #input
      c ">"
      #expected
      h "<!-->-->"
      
      #input
      c "->"
      #expected
      h "<!--->-->"
      
      #input
      c "-->"
      #expected
      h "<!---->-->"
      x e
      
      #input
      e "style"
        c ""
      #expected
      h "<style><!----></style>"
      
      #input
      p "x"
      #expected
      h e
      
      #input
      p "x" "y"
      #expected
      h e
      
      #input
      e "p"
      e "p"
      #expected
      h "<p></p><p></p>"
      
      #input
      e "ul"
        e "li"
        e "li"
      #expected
      h "<ul><li></li><li></li></ul>"
      
      #input
      e "dl"
        e "dt"
        e "dd"
      #expected
      h "<dl><dt></dt><dd></dd></dl>"
      
      #input
      e "html"
        e "head"
        e "body"
      #expected
      h "<html><head></head><body></body></html>"
      
      #input
      e "ul"
        e "li"
        e "li"
      #expected
      h "<ul><li></li><li></li></ul>"
      
      #input
      e "table"
        e "tr"
        e "tr"
      #expected
      h "<table><tr></tr><tr></tr></table>"
      
      #input
      e "table"
        e "tbody"
          e "tr"
          e "tr"
      #expected
      h "<table><tbody><tr></tr><tr></tr></tbody></table>"
      
      #input
      e "table"
        t "x"
      #expected
      h "<table>x</table>"
      
      #input
      e "table"
        e "tr"
        t "x"
      #expected
      h "<table><tr></tr>x</table>"
      
      #input
      s "]]>"
      #expected
      h "]]&gt;"
      x e
      
      #input
      t "form feed: "
      #expected
      h "form feed: "
      x e
      
      #input
      s "form feed: "
      #expected
      h "form feed: "
      x e
      
      #input
      c "form feed: "
      #expected
      h "<!--form feed: -->"
      x e
      
      #input
      p "form feed" ""
      #expected
      h e
      x e
      
      #input
      e "form"
        a "feed" ""
      #expected
      h "<form feed=\"\"></form>"
      x e
      
      #input
      p "xml"
      #expected
      h e
      x e
      
      #input
      p "XML"
      #expected
      h e
      x e
      
      #input
      p "a:b"
      #expected
      h e
      x e
      
      #input
      p "test" "?>"
      #expected
      h e
      x e
      
      #input
      e "x" "" ""
      #expected
      h "<x></x>"
      
      #input
      e "x"
        a "lang" "" "" "http://www.w3.org/XML/1998/namespace"
      #expected
      h "<x lang=\"\"></x>"
      
      #input
      e "x"
        a "lang" "" "foo" "http://www.w3.org/XML/1998/namespace"
      #expected
      h "<x foo:lang=\"\"></x>"
      
      #input
      e "x" "" "http://www.w3.org/XML/1998/namespace"
      #expected
      h "<x></x>"
      
      #input
      e "x" "foo" "http://www.w3.org/XML/1998/namespace"
      #expected
      h "<foo:x></foo:x>"