[FLOW3-general] Feature in TagBuilder
Adrian Föder
afoeder at live.de
Thu Oct 13 16:12:50 CEST 2011
On 13.10.2011 15:36, Thomas Allmer wrote:
>
> sound pretty good...
>
> and I would also sugguest a
> ->getAttribute($attributeName) and
> ->hasAttribute($attributeName)
>
> see:
> http://forge.typo3.org/issues/30555
perfect. I have to admit I'm a bit influenced how JavaScript libraries
do this stuff.
I would even say that "addAtribute" could be a bit misleading because it
overwrites already existent values. "setAttribut" could be better, it
assures a better predictable behaviour (and therefore more intuitive).
And calling setAttribute() with a non-existant attribute of course
*adds* it.
More information about the FLOW3-general
mailing list