void () { addTest("p.name", "<p class=\"name\"></p>"); addTest("p.one.two.three", "<p class=\"one two three\"></p>"); addTest("p.one-two.three", "<p class=\"one-two three\"></p>"); addTest("p.one.two-three", "<p class=\"one two-three\"></p>"); addTest("p.one_two-three", "<p class=\"one_two-three\"></p>"); addTest("p#myid", "<p id=\"myid\"></p>"); addTest("p#myid.name_with-dash32.otherclass", "<p id=\"myid\" class=\"name_with-dash32 otherclass\"></p>"); addTest("span.one.two.three", "<span class=\"one two three\"></span>"); addTest("span.one#two", "<span class=\"one\" id=\"two\"></span>"); addTest("span.one.two#three", "<span class=\"one two\" id=\"three\"></span>"); addTest("span[title]", "<span title=\"\"></span>"); addTest("span[title data]", "<span title=\"\" data=\"\"></span>"); addTest("span.test[title data]", "<span class=\"test\" title=\"\" data=\"\"></span>"); addTest("span#one.two[title data]", "<span id=\"one\" class=\"two\" title=\"\" data=\"\"></span>"); addTest("span[title=Hello]", "<span title=\"Hello\"></span>"); addTest("span[title=\"Hello world\"]", "<span title=\"Hello world\"></span>"); addTest("span[title=\"Hello world\"]", "<span title=\"Hello world\"></span>"); addTest("span[title=\"Hello world\" data=other]", "<span title=\"Hello world\" data=\"other\"></span>"); addTest("span[title=\"Hello world\" data=other attr2 attr3]", "<span title=\"Hello world\" data=\"other\" attr2=\"\" attr3=\"\"></span>"); addTest("span[title=\"Hello world\" data=other attr2 attr3]>em", "<span title=\"Hello world\" data=\"other\" attr2=\"\" attr3=\"\"><em></em></span>"); addTest("filelist[id=javascript.files]", "<filelist id=\"javascript.files\"></filelist>"); }