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

Bad parsing self-closing syntax for empty element #179

Closed
mrcnpdlk opened this issue May 25, 2018 · 0 comments
Closed

Bad parsing self-closing syntax for empty element #179

mrcnpdlk opened this issue May 25, 2018 · 0 comments

Comments

@mrcnpdlk
Copy link

@mrcnpdlk mrcnpdlk commented May 25, 2018

Version: 2.4.7

Bug Description

Problem with self-closing syntax (<Foo/>) for empty element where Foo is string with underscore character. Output of renderToString() method is damaged.

Steps To Reproduce

Input:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MAIL_Sender/>
<MAIL_Receiver/>
<MAIL_Subject/>
<MAIL_Smtp_Server/>

Output method of renderToString()

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MAIL_Sender></MAIL>
<MAIL_Receiver></MAIL>
<MAIL_Subject></MAIL>
<MAIL_Smtp_Server></MAIL>

Expected Behavior

Bug fix.

Possible Solution

I've no idea. Maeby some regexp in Parse class.

@dg dg closed this in dc77c23 May 25, 2018
dg added a commit that referenced this issue May 25, 2018
dg added a commit that referenced this issue Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.