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

Render XML well-formed boolean attribute #281

Merged
merged 5 commits into from Jan 4, 2019
Merged

Render XML well-formed boolean attribute #281

merged 5 commits into from Jan 4, 2019

Conversation

FranklinWhale
Copy link
Contributor

@FranklinWhale FranklinWhale commented Jan 3, 2019

Although HTML boolean attribute can have its value assignment omitted, such omission is not supported in XHTML because the syntax is not XML well-formed. Being well-formed XML allows the content to be processed by XML API such as LINQ to XML. This PR changes the attribute rendering method so that the value assignment of a boolean attribute is always specified (https://www.w3.org/TR/html/infrastructure.html#boolean-attribute).

This PR, if approved, replaces #280.

@xoofx xoofx merged commit 91dbfce into xoofx:master Jan 4, 2019
@xoofx
Copy link
Owner

xoofx commented Jan 4, 2019

Thanks!

@FranklinWhale FranklinWhale deleted the bool-attr branch January 4, 2019 13:03
MihaZupan added a commit to MihaZupan/markdig that referenced this pull request Jan 19, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants