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 renders erroneously #109

Closed
poisonborz opened this issue Mar 31, 2021 · 3 comments
Closed

Textarea renders erroneously #109

poisonborz opened this issue Mar 31, 2021 · 3 comments

Comments

@poisonborz
Copy link

Textarea renders erroneously - not that only it doesn't use the separate close tag as in input (as I think it should), but it also misses /> closing tag.

const np = require('node-html-parser')
console.log(np.parse('<textarea id="input_3"></textarea>').toString())

Output: <textarea id="input_3">

@taoqf
Copy link
Owner

taoqf commented Apr 3, 2021

Yes, textarea is being treated as selfclose tag.

@poisonborz
Copy link
Author

Textarea is not selfclosing https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea (even if it would be, the result above is not selfclosing either)

@taoqf
Copy link
Owner

taoqf commented Apr 6, 2021

Yeah, you are write. I will fix this.

taoqf added a commit that referenced this issue Apr 6, 2021
@taoqf taoqf closed this as completed Apr 6, 2021
taoqf added a commit that referenced this issue Apr 12, 2021
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