ecmarkup icon indicating copy to clipboard operation
ecmarkup copied to clipboard

Text-adjacent HTML comments cause markup generation to fail

Open rkirsling opened this issue 6 years ago • 1 comments

Identified in tc39/ecma262#1589.

Normal case:

<p>
  Greetings.
</p>
<!-- comment -->
<p>The value *42* is my favorite.</p>

<p>
  Greetings.
  
</p>
<!-- comment -->
<p>The value <emu-val>42</emu-val> is my favorite.</p>

Problem case:

<p>
  Greetings.
  <!-- comment -->
</p>
<p>The value *42* is my favorite.</p>

<p>
  Greetings.
  
  <!-- comment -->
</p>
<p>The value *42* is my favorite.</p>

rkirsling avatar Jun 16 '19 16:06 rkirsling

Iiiiinteresting. I'll investigate.

bterlson avatar Jun 18 '19 19:06 bterlson