Working with javascript on SWT browser yeild the different result from IE on Windows [message #546823] |
Wed, 14 July 2010 06:51  |
Eclipse User |
|
|
|
I put some javascript code to the page and show it on SWT browser. When I try to execute my javascript code, it return the wrong result. When I debug into the javascript code I found that the element.getAttribute() return the different value from working on IE (it return null on SWT Browser while return a string on IE). Is there any suggestion on this problem or how can I solve it?
My data is like this:
<dfn datasrc='abcdef' title='ABCD'>text here</dfn>
I use the same code (in fact, it is the same page) but when I execute the dfn.getAttribute('datasrc') on IE it return 'abcdef' correctly. But on SWT browser it return 'null' instead. Both browser found the dfn element but only IE can get attribute from it.
I thought that running SWT Browser on Windows using IE as the browser but why the results are different?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07080 seconds