You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even while it's encouraged to use Kebab-case for HTML-tags there are some use-cases where we have case-sensitive HTML elements, like in SVG (see #139). This would also allow to cleanup the special-handling we have for handling SVG elements in:
Since we are using Nokogiri::HTML4::DocumentFragment for parsing the source it automatically casts all tag names to lowercase. While Nokogiri::HTML5::DocumentFragment would support case-sensitive tags, it doesn't support other things like properly detecting boolean attributes (see #119 and #120).
Even while it's encouraged to use Kebab-case for HTML-tags there are some use-cases where we have case-sensitive HTML elements, like in SVG (see #139). This would also allow to cleanup the special-handling we have for handling SVG elements in:
phlexing/gem/lib/phlexing/template_generator.rb
Line 197 in 5cb7c95
Since we are using
Nokogiri::HTML4::DocumentFragment
for parsing the source it automatically casts all tag names to lowercase. WhileNokogiri::HTML5::DocumentFragment
would support case-sensitive tags, it doesn't support other things like properly detecting boolean attributes (see #119 and #120).ERB Input:
Output:
Expected output:
The text was updated successfully, but these errors were encountered: