Create a gist now

Instantly share code, notes, and snippets.

DOM element logging test
var elm = document.createElement('input')
elm.className = "testClass"; = "testID";
elm.setAttribute('data-rofl', 'copter') //elm['data-rofl'] = "copter"; doesn't work in webkit/firebug
elm.type = "search";
elm.setAttribute('list', "testDatalist") // elm.list = "foo"; doesn't work in webkit/firebug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment