Google Chrome v147 introduced a newline regression
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 74/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- html
- Domain
- documentation
Research direction
Start by locating the CodeJar documentation that describes the editor container and compare its guidance with the reported Chrome v147 behavior for
and elements. Done when the documentation clearly states the supported container element and notes the behavior of other tags.
Written by the indexing model from the issue text.
Description
It seems like something changed in v147 of chrome. My app which was previously using codejar on a <pre> element saw newlines stop working. After investigation I found that <br> tags were being inserted when pressing return instead of newline characters: \n.
I discovered that I could resolve this issue by making the CodeJar container a <div> tag instead of a <pre> tag.
This was a surprise to me, so I am reporting it here so other developers can be made aware. Perhaps the CodeJar documentation should add a note that editors must be <div> tags, and that browser behavior with other tags is not supported.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from antonmedv/codejar
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
-
firefox
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Force refresh? Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
The `restore()` function does not correctly set neither the caret position nor selection by code Openfirefox
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
firefox
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in antonmedv/codejar
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100