hassankhan/emojify.js — pull request #27 by suprememoocow (2014-02-19 23:12:45+00:00)
Title: Test support with Testling CI / Travis CI / PhantomJS and fix for Internet Explorer

This pull-request takes some elements of @qq99's PR #22, but leaves some others out.

What's in:
* Awesome tests, but converted to Javascript
* Support for raw text, but not raw html

Additional features:
* Testling CI support
* Travis CI support
* Internet Explorer support is working

Here's the Testling test results for this PR.
![](https://ci.testling.com/gitterhq/emojify.js.png)

Obviously @qq99's PR has a lot to do with raw html text processing. For our application, which contains a lot of user generated content, this is something that we specifically don't want as it may cause security implications (XSS etc)

While I'm not against processing raw html, I think the implications of doing this need to be considered a little more, which is why I've created this interim PR. From my understanding, the html `hello` would not be well handled in #22?

The tests were failing in Firefox as it serialised the DOM attributes in a different order to Webkit. This has been fixed.

I've converted @qq99's excellent tests to Javascript as this is a Javascript project and having the tests in a different language to the main project does not make sense to me.

In terms of browser support, while IE 8 and 9 still have some problems, the support is a lot better than it was previously. Hopefully we can sort out the IE issues going forward.