I have a C# application that uses a WebBrowser component. The user can either edit the html code and it gets reflected in a preview controller, or they can modify the html in design mode directly and this updates the html code.
When using FEATURE_BROWSER_EMULATION = 10000 (IE10), everything works well. But when switching to FEATURE_BROWSER_EMULATION = 11000 (IE11), a lot of spaces gets added to the HTML generated in design mode. Within a few minutes of switching back and forth, a few KB file can grow to a few MB, most of it being whole lines with only spaces.
Sample code to reproduce the issue: https://pastebin.com/KRNVwfc7
Produced HTML: https://pastebin.com/amt9TDfJ
Line 10 as an extra 70-ish spaces before the word New.
What could be causing this issue? Are there any work-arounds available while still using FEATURE_BROWSER_EMULATION = 11000 (IE11)?