void () { addTest("ul>li[@click=\"method\" :title=\"task.title\"]", """ <ul> <li @click="method" :title="task.title"></li> </ul>"""); addTest("t[type=application/atom+xml]", "<t type=\"application/atom+xml\"></t>"); addTest("basefont[href]/", "<basefont href=\"\">"); addTest("use[xlink:href]", "<use xlink:href=\"\"></use>", "xml"); addTest("input[-title]", "<input type=\"text\" -title=\"\">"); addTest("input[+title]", "<input type=\"text\" +title=\"\">"); addTest("<br/>br", "<br/><br>"); addTest("div[0]", "div[0]"); addTest("div{&nbsp;}", "<div>&nbsp;</div>"); addTest("div[data-object=]", "<div data-object=\"\"></div>"); addTest("div[data-object={id:2}]", "<div data-object=\"{id:2}\"></div>"); addTest("ul>li(a)*2", """ <ul> <li><a href=""></a></li> <li><a href=""></a></li> </ul>"""); addTest("ul>li(a)", """ <ul> <li><a href=""></a></li> </ul>"""); addTest("(>span)", "<span></span>"); addTest("div(span)", "<div><span></span></div>"); addTest("div(span)+div", "<div><span></span></div>\n" + "<div></div>"); addTest("div(>span)+div", "<div><span></span></div>\n" + "<div></div>"); addTest("div.recording>h2.recording__title(>span)+div.recording__image(>p.recording__meta)", """ <div class="recording"> <h2 class="recording__title"><span></span></h2> <div class="recording__image"> <p class="recording__meta"></p> </div> </div>"""); addTest("div.recording>h2.recording__title>(span)+div.recording__image(>p.recording__meta)", """ <div class="recording"> <h2 class="recording__title"><span></span> <div class="recording__image"> <p class="recording__meta"></p> </div> </h2> </div>"""); }