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

x-remove-whitespace trips itself up on empty attributes #2

Open
parnikkapore opened this issue Jun 23, 2021 · 2 comments
Open

x-remove-whitespace trips itself up on empty attributes #2

parnikkapore opened this issue Jun 23, 2021 · 2 comments

Comments

@parnikkapore
Copy link
Owner

Currently:

((compose xexpr->string x-remove-whitespace string->xexpr) "<dog type=\" \"> <siblings /> </dog>")

results in the following abomination:

x-remove-whitespace: broke its own contract
  promised: xexpr?
  produced: '(dog ((type)) (siblings ()))

The space in the attribute's value is removed, which results in an invalid xexpr.

@parnikkapore
Copy link
Owner Author

parnikkapore commented Jun 23, 2021

Fixing this will likely require a smarter xexpr lexer inside libquiche...

@parnikkapore
Copy link
Owner Author

xml/private/xexpr.rkt:118 looks interesting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant