From: William F. D. <wil...@th...> - 2006-08-28 16:18:38
|
On Sun, 2006-08-27 at 23:23 +0200, Martin Quinson wrote: > Hello William, > > after your fixes around the memleak on bufferstack, it looks like tag > attributes are not available from the ETag_* functions, but only from the > STag_* ones. > > I'm not sure this is a good thing, since I actually had a parser which used > this bug/feature. I fixed my code to only use attribute content in S_*_fun, > but it would be cool if you could change the way things are done to allow us > to access attributes from the E_*_fun too. I have looked into this; and it looks like a very simple change for me to make. However, I am a little puzzled how the generated parser was letting this through before my changes. There is code in flexml.pl (lines 1680, 1687, 1695) that to me seems to prohibit refering to attributes inside the end-tag processing code: die "\"$ACTIONS\", line $lineno: Attributes only allowed in start tag.\n" if not $isstart; Had you disabled this code somehow, or was there some case that was being missed, in the code around lines 1677-1702? Thanks, Will -- William F Dowling wil...@th... www.scientific.thomson.com |