louisremi / background-size-polyfill

Adds support for background-size "cover" and "contain" to IE8
http://louisremi.github.com/background-size-polyfill/
MIT License
1.26k stars 359 forks source link

Fix for the script's XML wrapping tags #10

Closed alex-polunochev-zz closed 11 years ago

alex-polunochev-zz commented 11 years ago

Updated htc-document tags in accordance with Microsoft guide: http://msdn.microsoft.com/en-us/subscriptions/ms532146(v=vs.85).aspx#HTC Even though public:component is optional, the xml document without closing tag can be parsed with unexpected results. In my test case the script was ignored completely (no behavior applied to elements). Adding these changes helped me to fix the issue.

jefferyto commented 11 years ago

Thanks for this! 0.2.0 has the MS-approved (UPPERCASE ;-) ) XML tags.

In retrospect, I could (and should) have pulled this commit directly. I'm not sure what I was thinking at the time :-(