tmpvar/jsdom — Issue #361: Incorrect handling of special html characters
Author: SSSSSmokey
Created: 2011-11-13 04:59:33+00:00
State: open

When using jsdom it will strip characters from my textareas. Here is how to reproduce:

jsdom.env({
html: '

'
scripts: ['http://code.jquery.com/jquery-1.6.2.min.js']
done: function (err, window) {
$ = window.$
// This will be false
$('#grammar').val('->')
console.log('->' == $('#grammar').val())
}
});

That comparison will be true in Google Chrome on OS X. I haven't tested other systems/configurations.