woofmark icon indicating copy to clipboard operation
woofmark copied to clipboard

HTML mode content get wrapped in <p> tags upon every refresh

Open danvim opened this issue 9 years ago • 3 comments

I think I've found another bug using the editor. The resulted text is not consistent refreshing the page with text in HTML mode.

I'm using Firefox Nightly 41,

Problem: Texts unexpected appended to editor upon refresh

Expected Result: <h1>Heading Text</h1> be consistent.

Actual Result: First time refresh: <p><h1>Heading Text</h1></p> Second time refresh: <p><p><h1>Heading Text</h1></p></p>

Procedures: Input any text into HTML mode, refresh page.

Analysis: The content is not consistent. <p> tags is being prepended and appended upon every refresh in HTML mode.

danvim avatar Jun 12 '15 14:06 danvim

I can't reproduce this issue. Please provide precise repro steps

bevacqua avatar Jul 17 '15 15:07 bevacqua

Still using Nightly, but Firefox should reproduce the issue.

Steps:

  1. Use http://bevacqua.github.io/woofmark/
  2. Use "HTML" mode and delete everything
  3. Paste in <h1>Heading Text</h1>
  4. Click the refresh button on the right of the address bar.
  5. The editor should now contain <p><h1>Heading Text</h1></p>

danvim avatar Jul 18 '15 01:07 danvim

Can you work out a fix for this issue?

bevacqua avatar Jul 19 '15 01:07 bevacqua