Skip to content

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

@thescientist13

Description

@thescientist13

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to the website and / or documentationgood first issueGood for newcomers

Type

Projects

Status

🏗 In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions