提交 39fc7c06 编写于 作者: Y yancen

[case]补充htmlparser大小写用例

上级 20f8e239
......@@ -50,4 +50,8 @@ test( '属性引号问题', function() {
test( '大小写', function() {
var root = UE.htmlparser('<p><TD></TD></p>');
equals(root.toHtml().replace(/[ ]+>/g,'>'),'<p><table><tbody><tr><td></td></tr></tbody></table></p>');
var root = UE.htmlparser('<OL><LI><em><u>sdf<LI>sdfsdf</OL>');
equals(root.toHtml().replace(/[ ]+>/g,'>'),'<ol><li><em><u>sdf</u></em></li><li>sdfsdf</li></ol>','补全u,em');
var root = UE.htmlparser('<IMG width=200 height=200 />');
equals(root.toHtml().replace(/[ ]+>/g,'>'),'<img width="200" height="200" />');
});
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册