use hasAttribute instead of "== null" (fixes #5)
Merge pull request #6 from canalplus/fix-#5

use hasAttribute instead of "== null" (fixes #5)