chemerisuk / better-dateinput-polyfill

input[type=date] polyfill
http://chemerisuk.github.io/better-dateinput-polyfill/
MIT License
259 stars 58 forks source link

Uncaught TypeError: Cannot read property 'lang' of null #85

Closed tim-field closed 6 years ago

tim-field commented 8 years ago

Above error is raised in chrome ( latest at least )

From here. https://github.com/chemerisuk/better-dateinput-polyfill/blob/v2.0.0/dist/better-dateinput-polyfill.js#L19

Reproduce like so in the console window.DOM.get('documentElement'); -> null

window.DOM.get('documentElement').lang; triggers above error.

CyrilWork commented 7 years ago

I am not sure if it will work with your case but you can set the lang in the html tag inside your html like this <html lang="en">

chemerisuk commented 7 years ago

@tim-field it looks like you do not have all dependencies downloaded