XML attributes no longer disappear if a tag contains whitespace #272

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@indirect
Member

before:

Hash.from_xml("<tag foo='bar'>\n</tag>")
=> {"tag"=>"\n"}

now:

Hash.from_xml("<tag foo='bar'>\n</tag>")
=> {"tag"=>{"foo"=>"bar", "__content__"=>"\n"}
@indirect indirect attributes no longer disappear if a tag contains whitespace
old:
Hash.from_xml("<tag foo='bar'>\n</tag>")
=> {"tag"=>"\n"}

new:
Hash.from_xml("<tag foo='bar'>\n</tag>")
=> {"tag"=>{"foo"=>"bar", "__content__"=>"\n"}
78d971c
@dhh
Member
dhh commented Apr 14, 2011

Thanks! Applied.

@dhh dhh closed this Apr 14, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment