Re: Are all <a> and <area> nodes to be considered WebLinks

Russell Gold <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
<a href=""> is a link.
<a name=""> is not a link - it is an anchor.
That is as designed. What we need is a getAnchors() method, not a  
change to an existing method.

On Apr 6, 2008, at 3:30 AM, Wolfgang Fahl wrote:

> Dear httpunit developers,
>
> bug report [ 1156972 ] isWebLink doesn't recognize all anchor tags
> by fregienj contains:
>
> "I would suggest changing ParsedHTML.isWebLink(Node)
> from checking if the "href" attribute exists to
> checking if the node name is equal-to-ignore-case "A".
>
> return (node.getNodeName().equalsIgnoreCase("A"));
>
> Currently isWebLink does not pick up on links that only
> use the onclick to go to a page. There's also no
> currently way to find a <a name=> tag."
> I have worked on this with
> http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=912
> and not activated the change since it would break other test cases.
>
> Currently the test case for this bugreport warns:
> *** Test testFindNonHrefLinks() disabled: pending decision for bug  
> report [ 1156972 ] -> does an <a> node to have href to be considered  
> a link?
>
> What is your opinion to the answer for this Question:
> Does an <a> or <area> node to have href to be considered a link?
>
> How should httpunit behave with respect to this question. So what  
> should getLinks return for a response?
>
> This may well lead to a compatibility issue and we might have to add  
> a new version of getLinks or add an option that allows to switch to  
> the old behaviour.
>
> What do you think?
>
> Yours
>   Wolfgang
>
> BITPlan - smart solutions
> Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
> Tel. +49 1805 - BITPLAN / +49 1805 248 752, Fax +49 2154 811-481
> Web: http://www.bitplan.de
> bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548,  
> Geschäftsführer: Wolfgang Fahl
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
> Httpunit-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/httpunit-develop

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.