Skip to content

tommitch/meteor-comment-bug

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Meteor comment bug reproduction!

Only happening in template inclusion

A HTML comment containing an opening tag of a HTML element that is not allowed in the HTML structure will trigger sanitizing.

Expected

HTML code to be rendered as intended, not taking into account comments.

Result

HTML code is stripped of invalid characters based on HTML code in HTML comments. Only happens when HTML comment precedes wanted HTML content AND it contains an opening HTML tag which would break HTML validation when rendered.

Conclusion

HTML comments containing opening elements will be attempted to be rendered. After rendering it will trigger sanitizing filters after which certain elements get removed.

About

Sub templates starting with HTML comments that contain opening HTML tag trigger render bug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 81.2%
  • CSS 11.8%
  • JavaScript 7.0%