提交 c2f4d53c 编写于 作者: C campaign

by zhanyi

上级 fa2c4a16
......@@ -87,7 +87,7 @@
attrhtml = attrhtml.join(' ');
}
arr.push('<' + node.tagName +
(attrhtml ? ' ' + attrhtml + ' ' : '') +
(attrhtml ? ' ' + attrhtml : '') +
(dtd.$empty[node.tagName] ? '\/' : '' ) + '>'
);
//插入新行
......@@ -398,7 +398,7 @@
},
setStyle:function (name, val) {
function exec(name, val) {
var reg = new RegExp(name + ':([^;]+);?', 'gi');
var reg = new RegExp(name + ':([^;]+;?)', 'gi');
cssStyle = cssStyle.replace(reg, '');
if (val) {
cssStyle = name + ':' + utils.unhtml(val) + ';' + cssStyle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册