ampproject / ampproject/worker-dom
HTML entities added to innerHTML are not decoded
Open
- 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
Assessment
This issue has not been assessed yet.