Get Text keyword in Webkit: returns \n with the Text

Only in Webkit
Each time the keyword Get Text is used, it returns the “text” with a \n before and after the string.
I think this is a bug. There is no \n in the dom and it is all good with Chromiun or Firefox.
INFO Text: ‘\nName\n’

The workaround is to strip those from the string
${header_text}= Strip String ${header_text} characters=${\n}

I recall seeing similar issues and in that case it was a bug in WebKit side

Hello,
Since this issue doesn’t happen in Chromium or Firefox, it could be a rendering quirk specific to WebKit’s implementation.

Your workaround using Strip String to remove \n is a solid approach. Alternatively, you might consider using .strip() in Python if you’re handling it within a script:

header_text = header_text.strip("\n")

If this issue is causing broader problems, you may want to check how WebKit interprets whitespace or explore whether a different text extraction method gives cleaner output.

Hope this helps!
Best regards,
Dora