Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textarea should be treated as a multiline HTML block #657

Closed
ColdHeat opened this issue Jul 12, 2020 · 3 comments
Closed

Textarea should be treated as a multiline HTML block #657

ColdHeat opened this issue Jul 12, 2020 · 3 comments

Comments

@ColdHeat
Copy link

The Commonmark spec says for HTML blocks (rule 1), that <script , <pre , or <style tags should start an HTML block and not be terminated until the end tag is found.

Although not specifically markup, <textarea> should be included in this rule because it is a multi-line element. If you include a multi-line textarea the rendering will break the contents in the textarea.

image

Discussion post on this issue: https://talk.commonmark.org/t/textarea-as-multi-line-html-block/3550

@jgm jgm closed this as completed in 24b9d38 Jul 12, 2020
@ColdHeat
Copy link
Author

@jgm what's the process for renderers (i.e. cmark) to adopt this change?

@jgm
Copy link
Member

jgm commented Jul 12, 2020

I already made the change in cmark and commonmark.js.

@ColdHeat
Copy link
Author

Thank you for being amazing!

jgm pushed a commit that referenced this issue Sep 29, 2020
Kind 1 HTML now includes `textarea`.
Some other HTML kinds also mention that list, but were not updated.
This commit also orders these raw tag names alphabetically.

Related to: GH-657.
Related to: 24b9d38.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants