ampproject / ampproject/worker-dom

HTML entities added to innerHTML are not decoded

Open
#613 7 comments 0 reactions 1 assignee Claimed by @kristoferbaxter View on GitHub
Dominant language
TypeScript
Stars
3.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

Consider this `amp-script`:

```html


Loading...




document.querySelector('p').innerHTML = '‹‹‹ ›››';



Try running script in main thread

```

The rendered output is:

```
‹‹‹ ›››
```

When I expected the HTML entities to be decoded as:

```html
‹‹‹ ›››
```

So WorkerDOM is not properly decoding HTML entities.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.