Closed josh18 closed 8 years ago
@techi602 Good point, I've added in both of your tests (they both passed).
:+1:
@tijsverkoyen
Please, please merge this & release new version ASAP.
This is nifty component but this
makes problems in emails.
Thank you!!
@josh18 Why is the HTML5 doctype converted to lowercase? <!doctype html>
and <!DOCTYPE html>
equally valid, and I don't know of any compatibility problems with either.
See also http://stackoverflow.com/questions/7020961/uppercase-or-lowercase-doctype
You are right, either is fine. If I remember correctly DOMDocument always converts it to uppercase so I converted it to lowercase so that it matches the user put in lowercase. Of course this means it won't match if the user starts with uppercase but it seems like lowercase is more of the "standard" for html5, for example HTML5Boilerplate.
This solves the issues with self-closing tags (
<br>
going to<br></br>
) and assists with utf-8 encoding.@techi602 I think this should solve all the utf-8 encoding issues?