wrap attribute setting in try/catch to avoid baling on terrible markup
adds a test for makeElement behaviour, exposes it globally for testing purposes, this test case would throw in earlier versions
make test less strict, previous behaviour was to throw, so ok() is a sufficient assertion. Old test does not work on simulated iOS 5 or phantomJS
Formatting.
Merge pull request #107 from mobify/catch-attribute-setting-errors

wrap attribute setting in try/catch to avoid bailing on terrible markup