haml / html2haml

Convert HTML and HTML+Erb to Haml.
MIT License
259 stars 55 forks source link

XML conversion does not preserve tag case. #62

Open Shelvetco opened 8 years ago

Shelvetco commented 8 years ago

Test input:

<?xml version="1.0" encoding="UTF-8" ?>
<TestTag AwesomeAttr="Cool">Content</TestTag>

Expected output:

!!! XML
%TestTag{:AwesomeAttr => "Cool"} Content

Actual output:

!!! XML
%testtag{:awesomeattr => "Cool"} Content

This breaks some things unfortunately :/ EDIT: attributes also have their case destroyed; test case and outputs updated accordingly.