#136 Curly brackets cause unexpected behavior

v1.0_(example)
open
nobody
None
1
6 days ago
2013-10-27
maya
No

Here is a HTML.

<html>
<body>
<span>a</span>
<span>{b</span>
<span>c}</span>
<span>d</span>
</body>
</html>

And this is a simple PHP script.

// PHP
$html = file_get_html('test.html');
foreach ($html->find('span') as $v) {
    echo $v->innertext."\n";
}

I expected follwings:

A
{b
c}
d

But result is follwings:

a
{b</span>  <span>c}
d

Discussion