question

EnguerranGillet-2254 avatar image
0 Votes"
EnguerranGillet-2254 asked EnguerranGillet-2254 edited

WebBrowser with FEATURE_BROWSER_EMULATION = 11000 introduces extra spaces

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)?

dotnet-csharpms-edge
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@EnguerranGillet-2254, Since your problem is more related to IE or WebBrowser, I recommend that you could ask the question in their related forum.

Thanks for understanding.

0 Votes 0 ·

Hi @JackJJun-MSFT,

would you be able to point me to their forum? I thought the current forum was generic.

Cheers.

0 Votes 0 ·

0 Answers