Author Message
David Bernat 01/27/2006 11:46 pm
I am trying OE Ent 4.0.2298 SR2. I have encountered two bugs:

1. OE does not properly parse <A> tags if the links are contained in single quotes, that is ` ` vs. " ". I am aware that this violates HTML standards but I have encountered sites that do this through bad PHP programming. However, FireFox and IE have no problem handling this issue so I thought I would point it out.

2. URL substitution does not apply properly to relative, "soft" links as opposed to a "hard" links.
ex. <a HREF="http://www.somewhere.com/dir/file.html">click here</a>
vs.
<base href="http://www.somewhere.com/dir/">
<a href="file.html">no, click here</a>
URL substitution will properly process the whole link in the first example, but not the second example. In the second, URL substitution will only process the relative part, but not the base part of the url.

--David

Oleg Chernavin 01/28/2006 06:07 am
1. Can you please tell me the URL of the page with such link and which exact link fails? Offline Explorer is capable to work correctly with tags where double-quotes are using, single-quotes and even no qoute symbols at all.

2. A real page example would be helpful here. And what exactly you are trying to do with the substitution.

Thank you!

Best regards,
Oleg Chernavin
MP Staff
David Bernat 01/28/2006 09:34 am
1.
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>

<BODY>
<BASE HREF="http://localhost/dir1/dir2/">

<A HREF=`../../page.htm`>click here</A>
<p>
<p>
<A HREF=`http://localhost/page2.htm`>or click here</A>

</BODY>
</HTML>

Both links work properly in IE or Firefox but the first one is not downloaded correctly by OE.
OE trys to download: http://localhost/dir1/dir2/page.htm, which is incorrect; it should grab http://localhost/page.htm

2. Take following html file:
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>

<BODY>
<BASE HREF="http://localhost/dir1/dir2/">
<A HREF=`../page.htm`>click here</A>
<p>
<p>
<BASE HREF="http://localhost/dir3/dir2/">
<A HREF=`../page.htm`>or click here</A>
</BODY>
</HTML>

***first bug also affects this example, but let`s assume you have fixed that bug for this example***

I want a substitution rule like this:
http://localhost/dir1/* * *?printable

so link one would become: http://localhost/dir1/page.htm?printable
BUT link two would be unaffected.
As it is, I can only write a rule which affects either the BASE part or the RELATIVE part of the url, but not both together. That is what I would like to do.
Oleg Chernavin 01/30/2006 09:27 am
I fixed this. Thank you! In the second example I used the following rule:

URL:
*
Replace:
http://localhost/dir1/*
With:
http://localhost/dir1/*?printable

Oleg.