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

Attributes without a value #439

Closed
FireSon opened this issue May 26, 2021 · 3 comments
Closed

Attributes without a value #439

FireSon opened this issue May 26, 2021 · 3 comments
Assignees

Comments

@FireSon
Copy link

FireSon commented May 26, 2021

Is it possible to write Attributes without a value? If I supply an empty value and use the QuoteType = AttributeValueQuote.None; I still get the = character in the output. Would it be possible to add a QuoteType which omits the Value in the OuterHtml?
Thanks!

  • HAP version: 1.11.33
  • NET version (net5)
@JonathanMagnan JonathanMagnan self-assigned this May 26, 2021
@JonathanMagnan
Copy link
Member

Hello @FireSon,

That's a good question, I don't think that's currently possible.

I will ask my developer if he can add something like: AttributeValueQuote.WithoutValue

Best Regards,

Jon


Sponsorship
Help us improve this library

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

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

@JonathanMagnan
Copy link
Member

JonathanMagnan commented Jun 7, 2021

Hello @FireSon ,

The v1.11.33 has been released.

The option AttributeValueQuote.WithoutValue has been added:

var doc1 = new HtmlDocument();
doc1.GlobalAttributeValueQuote = AttributeValueQuote.WithoutValue;

Is this library useful to you? Please help us by becoming a sponsor to keep it alive and supported.

@FireSon
Copy link
Author

FireSon commented Jun 7, 2021

Woo thanks a lot!!
Will check it out as soon as possible.
Thanks very much for the quick solution!

@FireSon FireSon closed this as completed Jun 7, 2021
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