[Pmwiki-users] Image sizes, alt tags, and more (was: Image display resizing problem)
Patrick R. Michaud
Mon Mar 1 23:08:54 CST 2004
On Tue, Mar 02, 2004 at 02:47:50PM +1100, Nathan Jones wrote:
> Pm wrote:
> >In particular, let's make use of the query string
> >parameter on image URLs, which isn't commonly used (I'm not aware of
> >any sites that use this).
> If choosing this markup, I would hope to see an easy method to disable it
> as a local customisation. While images are not usually used with query
> strings, there may be exceptions.
I agree, so perhaps I should restrict the query string to only
allow those attributes that are valid in <img...> tags; i.e.,
alt, border, height, width, vspace, hspace, and perhaps class, id,
and style. I know there are other attributes available for <img...>
but I don't think they're common enough to be concerned with.
So, a query string that contained something other than the attributes
listed above wouldn't be processed in this manner. Would that
work? (I can still provide a configuration option to turn this behavior
> >Also, if the query string parameter is a problem, we could instead
> >overload the fragment identifier in URLs (which also generally has no
> >significant meaning for image URLs), thus coming up with something like:
> I can think of no use for the fragment identifier with image URLs, so I
> prefer this syntax.
Would you still prefer #height=20&alt=Pop_Tarts over ?height=20&alt=Pop_Tarts
given the change I proposed above?
More information about the pmwiki-users