Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

The table copied from excel and pasted into a div with contenteditable=true misses its wrapping <table> element.

  • 1 个回答
  • 1 人有此问题
  • 29 次查看
  • 最后回复者为 guigs

more options

Open an excel document, copy a table, say a 2*3 table holding 1, 2, 3; 4, 5, 6. Go to the http://jsfiddle.net/ThinkingStiff/AbKTQ/. Paste the content into the text field which contains "I look like a textarea". Press F12 and then check the html of that control, you will see the content in the attached image: Under the div, there is no table element but only the colgroup and tbody which are sub elements of the table.

Since table contains the format information, it should be available after paste operation. Both IE and Chrome can handle this correctly. Hope Firefox can do the same.

Both 38 and 39 have the same problem.

Open an excel document, copy a table, say a 2*3 table holding 1, 2, 3; 4, 5, 6. Go to the http://jsfiddle.net/ThinkingStiff/AbKTQ/. Paste the content into the text field which contains "I look like a textarea". Press F12 and then check the html of that control, you will see the content in the attached image: Under the div, there is no table element but only the colgroup and tbody which are sub elements of the table. Since table contains the format information, it should be available after paste operation. Both IE and Chrome can handle this correctly. Hope Firefox can do the same. Both 38 and 39 have the same problem.

所有回复 (1)

more options