Community
Participate
Working Groups
While working on: Bug 514719 – [Browser][Webkit2] port Browser.getText() to webkit2 I found that getText() behaves differently depending on platform. On Windows, the returned html is the *processed* html. I.e, the html after a webpage has loaded. On Linux Webki1, Webkit2 and Cocoa, the returned html is the *original* html. Ex 1: Input: helloWorld Output Windows : <html><head></head><body>helloWorld</body></html> Output Lin/Coca: <same as input> Ex 2: Input: <html><head></head><body>hello World<script>document.body.style.backgroundColor = \"red\";</script></body></html>"; Output Windows: "<html><head></head><body style=\"background-color: red;\">hello World<script>document.body.style.backgroundColor = \"red\";</script></body></html>" Otupt Lin/Coca: <same as input> Please see jUnits: https://git.eclipse.org/r/#/c/100648/ Unless someone wants to update Window's underlying browser implementation, I will update Browser.getText() api to say that returned html is platform dependent.
New Gerrit change created: https://git.eclipse.org/r/100652
Gerrit change https://git.eclipse.org/r/100652 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d6da324571507c31acfc69e626eb3826c5f88ac0