commit | 51bcb5cf75d626f5ab4506a3adc4fc56ed9e1ada | [log] [tgz] |
---|---|---|
author | gwt.team.knorton <gwt.team.knorton@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Fri Nov 16 15:13:34 2007 +0000 |
committer | gwt.team.knorton <gwt.team.knorton@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Fri Nov 16 15:13:34 2007 +0000 |
tree | 64e99bb79bc4da0add44d15946f1eda37ee0f81b | |
parent | 3e7f12d97cf085501f537440afc23d7646fc87d9 [diff] |
Fixes issue #1702. insertListItem current created an option element with the wrong owner document. This causes errors in FF3 preview builds. Review by: ecc git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1533 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/impl/DOMImpl.java b/user/src/com/google/gwt/user/client/impl/DOMImpl.java index 0ea3949..76adad8 100644 --- a/user/src/com/google/gwt/user/client/impl/DOMImpl.java +++ b/user/src/com/google/gwt/user/client/impl/DOMImpl.java
@@ -274,7 +274,7 @@ */ public native void insertListItem(Element select, String item, String value, int index) /*-{ - var option = new Option(item, value); + var option = new $wnd.Option(item, value); if (index == -1 || index > select.options.length - 1) { select.add(option, null); } else {