nori icon indicating copy to clipboard operation
nori copied to clipboard

There is issue in Savon with empty nodes filled with attributes in hash

Open Pepan opened this issue 12 years ago • 5 comments

Issue: https://github.com/savonrb/savon/issues/314

Problem: When node is empty, it leaves it as hash and fills it with attributes. This is wrong. I commented line out...

Pepan avatar Nov 23 '12 12:11 Pepan

can you add specs to describe your problem and verify the fix?

rubiii avatar Dec 12 '12 11:12 rubiii

Did you get a chance to do the specs?

kPhilosopher avatar Apr 22 '13 22:04 kPhilosopher

Not jet. Too bussy.

Psáno z telefonu. Dne 23.4.2013 0:32 "kPhilosopher" [email protected] napsal(a):

Did you get a chance to do the specs?

— Reply to this email directly or view it on GitHubhttps://github.com/savonrb/nori/pull/27#issuecomment-16828227 .

Pepan avatar Apr 23 '13 05:04 Pepan

I don't know for sure, but maybe if you just pass delete_namespace_attributes => true to Parser initializer you will get the expected response with blanks instead of namespece attributes.

formigarafa avatar Jan 14 '14 04:01 formigarafa

I'm finding this to be an issue for me too.

The attributes of any self closing tag <sometag attribute="bla" /> are being provided as the value after conversion to a hash.

Setting delete_namespace_attributes to true fixes the problem for me... but it was pretty surprising to encounter!

lholden avatar Mar 27 '20 20:03 lholden