Fixes copy/paste error in the as() method.
Patch by: jgw
Review by: bruce (desk review)
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2401 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/dom/client/LinkElement.java b/user/src/com/google/gwt/dom/client/LinkElement.java
index ef23341..5ec2d90 100644
--- a/user/src/com/google/gwt/dom/client/LinkElement.java
+++ b/user/src/com/google/gwt/dom/client/LinkElement.java
@@ -27,9 +27,9 @@
* Assert that the given {@link Element} is compatible with this class and
* automatically typecast it.
*/
- public static HeadElement as(Element elem) {
- assert elem.getTagName().equalsIgnoreCase("head");
- return (HeadElement) elem;
+ public static LinkElement as(Element elem) {
+ assert elem.getTagName().equalsIgnoreCase("link");
+ return (LinkElement) elem;
}
protected LinkElement() {