IE doesn't support hasAttribute(), so changed code to use getAttribute() instead.
IE doesn't support hasAttribute(), so changed code to use getAttribute() instead.

cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw