basecamp / basecamp/trix

<textarea> with Greek contents crashes the page

Open
#925 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

When using a `textarea` as input, memory footprint is much higher compared with `text` input or `hidden` input.
If you are using long Greek contents, this may crash your page entirely.

##### Steps to Reproduce

1. Create a Trix editor with `textarea` as input.
2. Make sure CSS `textarea` does NOT include `display: none;`
3. Enter Greek contents ~40K characters

##### Notes
- Applying style `display: none;` to `` element compensates and stabilizes.
- Compared with `<input type="text">` or `<input type="hidden">`, memory footprint is ~40% higher on average.
- See [CodePen](https://codepen.io/dafbyte/pen/eYRYpoM) for reference

##### Details
* Trix version: 1.3.1
* Browser name and version: 92.0.4515.159 (64-bit)
* Operating system: Windows 10 Business (64-bit)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.