question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I set 'input' remove from selfClosingInlineTags?

See original GitHub issue

source code: <input></input>

expect output: <input></input>

actual output: <input>

How can I set in config attr?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
DanielRufcommented, Apr 26, 2020

You can not remove it from there as it is hardcoded.

See https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L71 https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlparser.js#L71

You can see all options on the right side at http://kangax.github.io/html-minifier/

In the app source.input is a closing tag

This is invalid html. If you want to tell html-minifier that it should not touch this part see https://github.com/kangax/html-minifier#ignoring-chunks-of-markup

Also keep in mind that invalid markup will produce issues: https://github.com/kangax/html-minifier#working-with-invalid-markup

0reactions
tyonlycommented, Apr 27, 2020

You can not remove it from there as it is hardcoded.

See

https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlminifier.js#L71

https://github.com/kangax/html-minifier/blob/51ce10f4daedb1de483ffbcccecc41be1c873da2/src/htmlparser.js#L71

You can see all options on the right side at http://kangax.github.io/html-minifier/

In the app source.input is a closing tag

This is invalid html. If you want to tell html-minifier that it should not touch this part see https://github.com/kangax/html-minifier#ignoring-chunks-of-markup

Also keep in mind that invalid markup will produce issues: https://github.com/kangax/html-minifier#working-with-invalid-markup

Yes ,as in my project ,I have adjust codes ,Line 71 in 51ce10f And then it works fine. thks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Are (non-void) self-closing tags valid in HTML5?
In practice, using self-closing tags in HTML should work just like you'd expect. But if you are concerned about writing valid HTML5, you...
Read more >
Self Closing Tags in HTML (With Examples) - Tutorials Tonight
In HTML, closing a self closing tag with its closing tag is invalid. For example, closing a <input> tag like <input></input> is not...
Read more >
Dataweave - Remove SELF CLOSING XML TAG
Hi. AS we all know we can self close a xml tag using the following syntax - inlineCloseOn = "null" - But for...
Read more >
<input>: The Input (Form Input) element - HTML
Since every <input> element, regardless of type, is based on the HTMLInputElement interface, they technically share the exact same set of ...
Read more >
Form Tags | Components - BootstrapVue
When the prop remove-on-delete is set, and the user presses Backspace (or Del ) and the input value is empty, the last tag...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found