On 23 déc, 05:57, Nick Cronin <[email protected]> wrote:
> Hi,
> Is there a way to assign a rel attribute on an anchor tag via the
> "Anchor" object?  There's no setRelationship or anything obvious and
> I'm sure it's quite simple I just can't see it easily =)

A bit "low level" but quite "easy" nevertheless:

   myAnchor.getElement().<AnchorElement>cast().setRel("nofollow");

or if you don't like this cast() syntax:

   AnchorElement elt = myAnchor.getElement().cast();
   elt.setRel("nofollow");

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to