Javascript Mozilla中document.execCommand(';insertunderedList';)上的标记错误
我正在使用Javascript Mozilla中document.execCommand(';insertunderedList';)上的标记错误,javascript,html,Javascript,Html,我正在使用 document.execCommand('insertUnorderedList'); 在我的代码中 在铬合金中,它工作良好,并插入: <li> <a href="/example.html">example</a> </li> <li> <a href="/example.html">example</a> *<br>* <
document.execCommand('insertUnorderedList');
在我的代码中
在铬合金中,它工作良好,并插入:
<li>
<a href="/example.html">example</a>
</li>
<li>
<a href="/example.html">example</a>
*<br>*
</li>
但在Firefox中,相同的命令插入:
<li>
<a href="/example.html">example</a>
</li>
<li>
<a href="/example.html">example</a>
*<br>*
</li>
*
*
如何避免插入此
标记