Skip to content

SelfClosing tag with boolean attributes will fail on parse #132

@TakkuzOld

Description

@TakkuzOld

Checklist

  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?

Input

<widget>
    <selfClosing withAttr="yes" />
    <noAttr />
    <noSpace/>
</widget>

Output

Running on OnLine Tool you can see that, with Allow Boolean Attributes flag ON, when there's no space between TagName and closing tag / will be identified as boolean attributes.

Bad part is the j2xparser will write every selfclosing tag without space before closing tag /> so a second parse will result in an error.

expected data

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions