--HAML--
%html
:javascript

  bar
    baz
    
foo

--EXPECT--
root(
  tag(html)
  filter(javascript
    interpolated(text())
    interpolated(text( bar))
    interpolated(text(   baz))
    interpolated(text(    ))
  )
  interpolated(text(foo))
)

