ProjectEvergreen / ProjectEvergreen/wcc

HTML entities (or literal HTML tags in attributes) are not being respected and treated as literal HTML tags

Open
#249 2 comments 0 reactions 1 assignee View on GitHub

@Abhikorekar is already working on this.

Since Feb 15, 2026.

bug documentation good first issue
Dominant language
JavaScript
Stars
126
Forks
17
PR merge metrics
No merged PRs in 30d

Description

Summary

Currently on the home page in the Capabilities section, the <template> feature needed to authored with explicit spaces before the angle brackets

Image
<wcc-capability-box heading="< template >">
  <p>Template element support (createElement)</p>
</wcc-capability-box>

Otherwise, without the spaces, all the content disappears, which makes sense, as parse5 is literally interpreting the contents as an HTML tag

<wcc-capability-box heading="<template>">
  <p>Template element support (createElement)</p>
</wcc-capability-box>
Image

However, even when using HTML entities (which I would expect to work) the content disappearing still occurs

<wcc-capability-box heading="&lt;template&gt;">
  <p>Template element support (createElement)</p>
</wcc-capability-box>

Would be nice to figure out a way to make this work one way or the other.

Additional Details

Based on some initial research, it seems to be a parse5 issue - https://github.com/ProjectEvergreen/wcc/pull/250/changes#r2820010219

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.