Are all <a> and <area> nodes to be considered WebLinks
"Wolfgang Fahl" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Organization | BITPlan GmbH |
| Message-ID | <[email protected]> |
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