Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forcing full closing tags during serialization? #50

Open
PlkMarudny opened this issue Jun 2, 2020 · 1 comment
Open

Forcing full closing tags during serialization? #50

PlkMarudny opened this issue Jun 2, 2020 · 1 comment
Labels
help-wanted External contributions welcome needs investigation Information is missing and needs to be researched spec:no standard spec:XML https://www.w3.org/TR/xml11/ xml:valid https://www.w3.org/TR/xml11/#dt-valid

Comments

@PlkMarudny
Copy link

Is there any way to serialize doxument using full closing tags on empy or null values?

I am getting:

<value/>

while I would like to obtain:

<value></value>

@brodybits brodybits added help-wanted External contributions welcome needs investigation Information is missing and needs to be researched labels Jun 21, 2020
@karfau
Copy link
Member

karfau commented Jan 21, 2021

It's related to #58 in that it might be solvable with options for the serializer. But I'm not aware of anything in any Spec yet.

(Other than not all Browsers support "Empty Element Tags" https://www.w3.org/TR/xml11/#sec-starttags, so we might also consider to not serialize (any) empty tag in html namespaces. But this would be a breaking change.)

@karfau karfau added enhancement spec:no standard spec:XML https://www.w3.org/TR/xml11/ xml:valid https://www.w3.org/TR/xml11/#dt-valid labels Jan 21, 2021
@karfau karfau added this to the planning 1.0.0 milestone Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted External contributions welcome needs investigation Information is missing and needs to be researched spec:no standard spec:XML https://www.w3.org/TR/xml11/ xml:valid https://www.w3.org/TR/xml11/#dt-valid
Projects
None yet
Development

No branches or pull requests

3 participants