tc39 / tc39/ecmarkup

Text-adjacent HTML comments cause markup generation to fail

Open
#155 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
245
Forks
80
Avg merge
10h 46m
Merged PRs (30d)
2

Description

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>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the normal and problem cases from the issue, then trace the markup-generation entry point that handles text adjacent to HTML comments. The fix is done when the problem case preserves the comment and generates the expected emphasis markup without regressing the normal case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.