-
Notifications
You must be signed in to change notification settings - Fork 109
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
Stray end tag [source] #694
Comments
Reading the docs, While this violates rules of xml i'm not sure the fix proposed here is any better since https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source |
Quotes from https://www.w3.org/TR/2011/WD-html-markup-20110405/syntax.html The following is a complete list of the void elements in HTML: 5: Optionally, a "/" character, which may be present only if the element is a void element. Void elements only have a start tag; end tags must not be specified for void elements. |
The proposed solution only works if prettifyPublicMarkup is used, this is where i need to add it C1-CMS-Foundation/Composite/Core/WebClient/Renderings/Page/XElementToAspNetExtensions.cs Line 169 in 2e33ce0
|
Will this fix be included in future versions of C1? |
Yes. Thank you for reporting the issue. |
validator.w3.org gives me at lot of validation errors like "Stray end tag 'source'" because source-tags are closed with
"</source>"
instead of "/>".I guess adding "source" to the HashSet of SelfClosingElements might fix the problem.
C1-CMS-Foundation/Composite/Core/Xml/XhtmlPrettifier.cs
Line 96 in 2e33ce0
The text was updated successfully, but these errors were encountered: