Hi GemBox Team,
The combination of multiple nested and elements within a document occurs as HTML body in some mails that contain embedded HTML documents with even another level of embedded HTML content within. Normally this is not a problem and GemBox handles it well when loading those documents.
However, when the body element at second level contains a font-size specification in rem, the loading results in a StackOverflowException.
Removing one of the elements or the font-size specification avoids the exception, so it seems there must be some kind of problem with the combination.
Example content:
<html>
<body>
<div>
<html>
<body style="font-size:1.2rem">
<html>
<body>Inner body</body>
</html>
</body>
</html>
</div>
</body>
</html>
Stack trace:
...
at ⸮)
at +.⸮)
at .⸮, Double ByRef)
at ⸮)
at +.⸮)
at .⸮, Double ByRef)
at (GemBox.Document.CharacterFormat,⸮, Boolean, Boolean)
at .(GemBox.Document.CharacterFormat,⸮, Boolean, Boolean)
at.(System.String,⸮)
at.⸮)
at.⸮)
at.⸮)
at.(,⸮)
at.⸮)
at.⸮)
at.⸮)
at.(,⸮)
at.⸮)
at.⸮)
at.⸮)
at.(,⸮)
at.⸮)
at.⸮)
at.⸮)
at.(,⸮)
at.⸮)
at.⸮)
at.⸮)
at.(,⸮)
at.(, GemBox.Document.Section)
at.()
at.(System.IO.Stream, , System.Text.Encoding, System.String)
at.(System.IO.Stream, System.String, GemBox.Document.HtmlLoadOptions)(S
at GemBox.Document.HtmlLoadOptions.7k4lmxmhj5tk8h83eglk6fss34tasuhnystem.IO.Stream, System.String)
at GemBox.Document.DocumentModel.Load(System.String, GemBox.Document.LoadOptions)
at GemBox.Document.DocumentModel.Load(System.String)
Gembox.Document version: 35.0.1988-hotfix
Could you have a look at it?
Kind regards,
Sarah