Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#116 problem getting tag attributes

v1.0_(example)
open
nobody
None
1
2012-11-03
2012-11-03
radhouano
No

I have a problem when I try to get attributes which is not separated by spaces.
for example :
<img alt="toto"src="titi" width="blabla" />
src and width attributes are ignored.
I arrived to fix this problem by changing the line 1400 in the methode read_tag()

//if ($this->char!==null && $space[0]==='')

if ($this->char!==null && $space[0]==='' && ! count($node->attr))

Discussion