We are currently returning innerText with whitespaces cleaned, but the spec says we should return someting more complex, equivalent to what the selenium atoms do. "Let rendered text be the result of performing implementation-specific steps that are exactly analogous to the result of a [[Call]] to bot.dom.getVisibleText, providing null as the this value, and element as the argument." https://www.w3.org/TR/webdriver/#get-element-text
<rdar://problem/32307461>
Created attachment 450885 [details] Patch
*** Bug 184964 has been marked as a duplicate of this bug. ***
Comment on attachment 450885 [details] Patch Approach looks go to me as well until we can move to JS Built-ins for these scripts.
Committed r289467 (247010@trunk): <https://commits.webkit.org/247010@trunk>