[albatross-users] Consistencies in attributes and tags
Dave Cole
djc at object-craft.com.au
Fri Jul 4 11:48:34 EST 2003
>>>>> "Andrew" == Andrew McNamara <andrewm at object-craft.com.au> writes:
>>> There are some attributes that don't work in as many tags as I
>>> would like. The one that I have been irritated with was the
>>> 'noescape' attribute. It only applies to the <al-value> tag and
>>> not to <al-img>, and others. It shouldn't be difficult to make
>>> the attributes consistent across all tags, where they are
>>> applicable.
>>>
>>> This would make the <al-img> tag more useful (to me at least).
>>> Currently I have to ctx.locals.imgtag='<img src=...>' and expand
>>> it with '<al-value expr="imgtag" noescape>' rather than '<al-img
>>> expr="..." noescape>'.
>> I cannot see any problem in adding the noescape attribute to
>> al-img.
>>
>> We should probably add the ability to disable content escaping
>> everywhere. What do you think Andrew?
Andrew> Sounds reasonable.
OK, here is a patch to enable noescape in <al-input value="...">,
<al-img src="...">, <al-select optionexpr="..."> (values returned by
expression), and <al-textarea>.
It is completely untested - but will be in the next release.
- Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noescape.patch
Type: text/x-patch
Size: 2049 bytes
Desc: not available
URL: <http://www.object-craft.com.au/pipermail/albatross-users/attachments/20030704/d046b023/attachment.bin>
-------------- next part --------------
--
http://www.object-craft.com.au
More information about the Albatross-users
mailing list