collapseWhitespace doesn't fully collapses whitespace between two inputs
See original GitHub issueminify("<input> <input>", {collapseWhitespace: true});
Expected: <input><input>
Actual: <input> <input>
HTMLMinifier version: 3.5.2 Node.js version: 8.1.4
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Do not collapse whitespace when displaying the value of the ...
Updated: I still think that it is specific to the JSF , because when I use <h:inputText value="#{MBean.test}"/> , the rendered input text...
Read more >preserveWhitespaces:false is too aggresive and not context ...
collapse - whitespace is reduced to either a single space or a single newline depending on whether the original spaces contained a newline ......
Read more >Fighting the Space Between Inline Block Elements | CSS-Tricks
Here's some ways to fight the gap and get inline-block elements sitting directly next to each other. Remove the spaces. The reason you...
Read more >white-space - CSS: Cascading Style Sheets - MDN Web Docs
Collapses white space as for normal , but suppresses line breaks (text wrapping) within the source. Sequences of white space are preserved. ...
Read more >VF Rerender auto-normalizes spaces in Text fields. Why?
I did a little experiment using this code + VF page to see if style:"white-space-collapse: preserve" had any affect.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s working as expected - you may view the result in a web browser to see why that single whitespace is preserved.
@scipper Based on alexlamsl’s comment above, I assumed that the
collapseWhitespace
option is not intended to alter the behavior of the code, so I googled for the rules of HTML rendering, not for the rules of html-minifier. Something like “html whitespace between elements”.