shrhoads / gwt-oauth2

OAuth2 Client Bindings for the GWT generated javascript
Apache License 2.0
0 stars 0 forks source link

Buttons in sample don't display text #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to 
http://gwt-oauth2.googlecode.com/svn/trunk/samples/script/ScriptSample.html in 
Firefox 12
2. Observe a gray bar

What is the expected output? What do you see instead?
Expected output is two labeled buttons, instead all I see is a single gray bar.

What version of the product are you using? On what operating system?
I'm using Firefox 12 on Debian Wheezy.

Please provide any additional information below.
I'm not sure whether or not this is a Firefox bug or a bug in the sample. Using 
Firebug's console I'm able to tell innerText is set correctly for at least the 
first button, but I still don't see it.

Original issue reported on code.google.com by atomic.q...@gmail.com on 22 May 2012 at 9:17

GoogleCodeExporter commented 9 years ago
This helped for me:

if (document.all) {
button.innerText = "Authenticate";
} else {
button.textContent = "Authenticate";
}

Original comment by benj.koe...@gmail.com on 2 Jul 2013 at 3:16