sidewinderlabs / backplanejs

Other
12 stars 3 forks source link

Empty attributes aren't included in submitted data #43

Closed backplane-import closed 13 years ago

backplane-import commented 13 years ago

Imported from backplanejs Google Code issue 43.

Reporter markbirbeck
Date 5 Apr 2010 5:20:29 PM UTC

Reported by Alex Sansom:

When submitting an XML instance using IE (7.0.6002.18005) node elemets that are empty do not get included in the submitted data.

E.g., if you send:

<data xmlns=""> <currency-amount currency="GBP" amount=""></currency-amount> </data>

Verifying via Fiddler, only:

<data xmlns=""> <currency-amount currency="GBP"></currency- amount> </data>

gets sent to the resource you've submitted to.

Maybe it's helpful to note that if using the serialize() function with xf:output to display the contents of an instance, empty attributes in instance data are not shown then either.


Priority: Medium Type: Defect Browser: IE

backplane-import commented 13 years ago

Comment by markbirbeck on 5 Apr 2010 5:22:45 PM UTC

Alex adds:

In previous comment, where it says:

"Verifying via Fiddler, only:

" It should read: This highlights the fact that the @xmlns="" attribute is removed. This causes problems when inserting a fragment of XML into another instance (before submission) that already has a default namespace set too. As, if the @xmlns="" attribute is removed from the element, the all of the inserted data and it's children, are now identified as part of a different namespace. E.g., before submission, the following XML: upon submission becomes: meaning that the element and its children are now part of the "xyz" namespace, when they shouldn't be.
backplane-import commented 13 years ago

Comment by markbirbeck on 5 Apr 2010 5:23:46 PM UTC

Removed the IE-specific tag, since it happens in all browsers.


Updates

Owner set to markbirbeck

Ticket status set to Started

backplane-import commented 13 years ago

Comment by markbirbeck on 5 Apr 2010 5:30:10 PM UTC

This issue was closed by revision f29790fc91b00a29c828fab292efda4554195c6a (originally 96a31602fd).


Updates

Ticket status set to Fixed