link.rb

Path: lib/mechanize/page/link.rb
Last Update: Tue Sep 25 16:34:49 +0000 2012

This class encapsulates links. It contains the text and the URI for ‘a’ tags parsed out of an HTML page. If the link contains an image, the alt text will be used for that image.

For example, the text for the following links with both be ‘Hello World’:

  <a href="http://example">Hello World</a>
  <a href="http://example"><img src="test.jpg" alt="Hello World"></a>

[Validate]