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

Re: Bug? in wml pass 7 found (with the help of todo page)



On Mon, Nov 04, 2002 at 10:21:28AM +0100, Gerfried Fuchs wrote:
[...]
>  I've left out the unneccecary data for this problem.  This would be
> rendered up until pass 6 as:
> <item url=../../intl/l10n/po-debconf/>po-debconf translation center</a>
> 
>  pass 7 changes it to:
> <item url="../../intl/l10n/po-debconf"/>po-debconf translation center</a>
> 
>  This seems to have been done as feature for xhtml conformance things
> but raises problems in here.

Indeed, all paths with a trailing slash must be quoted.

>  A quick workaround for us would be to change the line 78 in
> todoitem.wml like this:
> -<a href=<get-var url/>><get-var urlname/></a>
> +<a href="<get-var url/>"><get-var urlname/></a>

This is the right fix.

>  That way we won't depend on pass 7 to get the quotes and avoid this
> imho unexpectable 'feature'.

I disagree, because
  * <img src=foo.jpg/> ==> <img src="foo.jpg"/>
  * <a href=foo/>      ==> <a href="foo/">

There is no way to know whereas trailing slash is part of attributes or
not.

Denis



Reply to: