Fix a bug in the test for document.dir.
Merge pull request #83 from w3c/document-dir-empty-sting

Fix a bug in the test for document.dir.