Irrelon / jquery-lang-js

i18n Allow instant language switching on HTML pages without reloading the page.
https://www.irrelon.com
362 stars 132 forks source link

Bug: When appending html with lang-attribute that has empty text nodes but a child element, js throws error #98

Closed drogerie21 closed 7 years ago

drogerie21 commented 7 years ago

if you do for example this $('<div lang="en-US"><textarea></textarea></div>').appendTo($('body')); you get an JavaScript error:

jquery_langjs_bug