[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: BUG REPORT: Website META Language 2.0.6 (25-Oct-2000)



At 02:19 PM 5/17/01, Denis Barbier wrote:
>On Sun, Apr 22, 2001 at 04:49:26AM +0000, Kurt Zeilenga wrote:
>> 
>> htmlfix appears to be trimming the trailing "/" from unquoted attributes.
>> 
>> The following input:
>> 
>> <ol>
>> <li><a href=/>BAD</a>
>> <li><a href=/ >GOOD</a>
>> <li><a href="/">GOOD</a>
>> <li><a href=http://www.example.net/>BAD</a>
>> <li><a href=http://www.example.net/ >GOOD</a>
>> <li><a href="http://www.example.net/">GOOD</a>
>> <li><a href=http://www.example.net/foo/>BAD</a>
>> <li><a href=http://www.example.net/foo/ >GOOD</a>
>> <li><a href="http://www.example.net/foo/">GOOD</a>
>> </ol>
>> 
>> produces
>> 
>> <ol>
>> <li><a href=>BAD</a>
>> <li><a href="/">GOOD</a>
>> <li><a href="/">GOOD</a>
>> <li><a href="http://www.example.net">BAD</a>
>> <li><a href="http://www.example.net/">GOOD</a>
>> <li><a href="http://www.example.net/">GOOD</a>
>> <li><a href="http://www.example.net/foo">BAD</a>
>> <li><a href="http://www.example.net/foo/">GOOD</a>
>> <li><a href="http://www.example.net/foo/">GOOD</a>
>> </ol>
>> 
>> Note the 1,4,7 list items.
>
>Hi Kurt,
>
>this is due to mp4h and not htmlfix, in order to allow processing of
>XHTML documents. I could not provide a solution to distinguish between
>xml trailing slashes and slashes being part of last attribute, sorry.

I would suggest one note this behavior in the documentation as
the removal of the trailing slash for the above HREF attributes
can cause 1) the URL to be invalid (as in the first example)
or 2) an extra roundtrip as the client gets redirected to
right URL (as in the other 4,7).  For other attributes, it
could cause other unexpected behaviors.



>-- 
>Denis Barbier
>WML Maintainer
>______________________________________________________________________
>Website META Language (WML)                www.engelschall.com/sw/wml/
>Official Support Mailing List                   sw-wml@engelschall.com
>Automated List Manager                       majordomo@engelschall.com

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com