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

Trailing slash on void element becomes part of the attribute name #514

Closed
austinw-fineart opened this issue Sep 11, 2023 · 3 comments
Closed
Assignees

Comments

@austinw-fineart
Copy link

1. Description

In the HTML standard, the trailing slash can exist on a void element with no effect, except when directly preceded by unquoted attribute values. Therefore the following is valid HTML:
<input id=foo disabled/>
However, HAP will parse this as having an attribute named disabled/ which is incorrect. The trailing slash should only be parsed as part of an unquoted attribute's value, such as <input id=foo disabled=/> and produce the attribute (name: "disabled", value: "/")

2. Exception

N/A

3. Fiddle or Project

https://dotnetfiddle.net/aAyPFj

4. Any further technical details

  • HAP version: 1.11.53
  • NET version: net7.0
@JonathanMagnan JonathanMagnan self-assigned this Sep 11, 2023
@JonathanMagnan
Copy link
Member

Hello @austinw-fineart

Thank you for reporting, my developer will look at this issue to fix it.

Best Regards,

Jon


Sponsorship
Help us improve this library

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework ExtensionsDapper Plus

Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function

@JonathanMagnan
Copy link
Member

Hello @austinw-fineart ,

The v1.11.54 has been released.

This issue should now be fixed in this version. The / will not be part of the attribute name anymore.

Best Regards,

Jon

@austinw-fineart
Copy link
Author

Much appreciated! Can confirm, closing as fixed.

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

No branches or pull requests

2 participants