Prerequisites
Description
When using GetInnerText the result returned misses linebreaks for the table rows.
If I use HTMLs "innerText", the linebreaks after each tablerow are correct.
I also tried to add "
" after a "" element, but it is ignored. Everything between "" and "" seems to be ignored.
Thanks a lot for the awesome project!
Steps to Reproduce
Setup simple Anglesharp example, config like the following:
IConfiguration config = Configuration
.Default
.WithCss(new CssParserOptions
{
IsToleratingInvalidSelectors = true,
IsIncludingUnknownDeclarations = true,
IsIncludingUnknownRules = true,
})
.WithRenderDevice(new DefaultRenderDevice
{
DeviceHeight = 768,
DeviceWidth = 1024,
});
Then parse the following HTML:
<html>
<head>
</head>
<body>
<h2>Test</h2>
<table>
<tbody>
<tr>
</tr>
<tr>
<td>Titel: </td>
<td>Herr</td>
</tr>
<tr>
<td>Vorname: </td>
<td>Horst</td>
</tr>
<tr>
<td>Nachname: </td>
<td>Hammer</td>
</tr>
</tbody>
</table>
</body>
</html>
Expected Behavior
The result when going with document.body.innerText from Chrome devtools console:
Test
Titel: Herr
Vorname: Horst
Nachname: Hammer
Actual Behavior
The result from anglesharp GetInnerText:
Test
Titel: Herr Vorname: Horst Nachname: Hammer
Possible Solution / Known Workarounds
No response
Prerequisites
AngleSharp.Xmlfor Xml support)Description
When using
GetInnerTextthe result returned misses linebreaks for the table rows.If I use HTMLs "innerText", the linebreaks after each tablerow are correct.
I also tried to add "
" after a "" element, but it is ignored. Everything between "" and "" seems to be ignored.
Thanks a lot for the awesome project!
Steps to Reproduce
Setup simple Anglesharp example, config like the following:
Then parse the following HTML:
Expected Behavior
The result when going with
document.body.innerTextfrom Chrome devtools console:Actual Behavior
The result from anglesharp
GetInnerText:Possible Solution / Known Workarounds
No response