Skip to content

Commit

Permalink
innerText does not exist everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Dec 21, 2012
1 parent 6388ff4 commit fe6cdc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
@@ -1,6 +1,6 @@
module.exports = require('cssauron')({
tag: function(node) { return (node.tagName || '').toLowerCase() }
, contents: 'innerText'
, contents: function(node) { return node.innerText || node.innerHTML }
, id: 'id'
, "class": 'className'
, parent: 'parentNode'
Expand Down

0 comments on commit fe6cdc9

Please sign in to comment.