74
0 vote vote

[ Resolved ]

href is stripped from the html document when BaseUrl is set.

Steps to regenerate

This really has me perplexed. When I set the DocumentHtml property with the following text, several of the HREF elements are stript of thier values. I can't quite figure out when it happens and when it doesn't - but this is really killing me:

BEFORE:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18943"></HEAD>
<BODY>asdfasdf here we go Payment Page Content <BR>
<a style="color:#4089bb;" href="mailto:joe.hatfield@countmein.com" >joe.hatfield@countmein.com</a><br>
<a style="color:#4089bb;" href="http://www.flintstone.nokaoi.com" >flintstone.nokaoi.com</a><br>
<a style="color:#4089bb;" href="http://flintstone.nokaoi.com" >flintstone.nokaoi.com</a><br>
<a style="color:#4089bb;" href="http://flintstone.nokaoi.com" >Google</a><br>
<a style="color:#4089bb;" href="http://www.flintstone.nokaoi.com" >Flintstone</a><br>
<a style="color:#4089bb;" href="http://maps.google.com" >Google</a><br>
<a style="color:#4089bb;" href="http://www.google.com" >AGI Development</a>
</BODY></HTML>

AFTER

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18943"></HEAD>
<BODY>asdfasdf here we go Payment Page Content <BR><A style="COLOR: #4089bb"
href="joe.hatfield@countmein.com
mailto:joe.hatfield@countmein.com">joe.hatfield@countmein.com</A><BR><A
style="COLOR: #4089bb"
href="flintstone.nokaoi.com
http://www.flintstone.nokaoi.com">flintstone.nokaoi.com</A><BR><A
style="COLOR: #4089bb" href="">flintstone.nokaoi.com</A><BR><A
style="COLOR: #4089bb" href="">Google</A><BR><A style="COLOR: #4089bb"
href="Flintstone
http://www.flintstone.nokaoi.com">Flintstone</A><BR><A
style="COLOR: #4089bb" href="Google
http://maps.google.com">Google</A><BR><A
style="COLOR: #4089bb" href="AGI'>http://www.google.com">AGIDevelopment</A>
</BODY></HTML>
Okay - now I see that it was because I had set the BaseURL property to http://flintstone.nokaoi.com . However, I'm not sure that it is appropriate for the HREF element to be set to an empty string which results in a blank reference. Maybe I'm missing something.
Please feel free to share your comment.
loading...