Skip to content

Commit

Permalink
Fix level1 error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aredridel committed Jan 31, 2011
1 parent 7becb55 commit a4a9ae8
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions lib/jsdom/level1/core.js
Expand Up @@ -92,18 +92,17 @@ var INDEX_SIZE_ERR = core.INDEX_SIZE_ERR = 1,
DOCUMENT_FRAGMENT_NODE = 11,
NOTATION_NODE = 12;

core.exceptionMessages = {
INDEX_SIZE_ERR : "Index size error",
DOMSTRING_SIZE_ERR : "DOMString size error",
HIERARCHY_REQUEST_ERR : "Heirarchy request error",
WRONG_DOCUMENT_ERR : "Wrong document",
INVALID_CHARACTER_ERR : "Invalid character",
NO_DATA_ALLOWED_ERR : "No data allowed",
NO_MODIFICATION_ALLOWED_ERR : "No modification allowed",
NOT_FOUND_ERR : "Not found",
NOT_SUPPORTED_ERR : "Not supported",
INUSE_ATTRIBUTE_ERR : "Attribute in use"
};
var messages = core.exceptionMessages = { };
messages[INDEX_SIZE_ERR] = "Index size error";
messages[DOMSTRING_SIZE_ERR] = "DOMString size error";
messages[HIERARCHY_REQUEST_ERR] = "Heirarchy request error";
messages[WRONG_DOCUMENT_ERR] = "Wrong document";
messages[INVALID_CHARACTER_ERR] = "Invalid character";
messages[NO_DATA_ALLOWED_ERR] = "No data allowed";
messages[NO_MODIFICATION_ALLOWED_ERR] = "No modification allowed";
messages[NOT_FOUND_ERR] = "Not found";
messages[NOT_SUPPORTED_ERR] = "Not supported";
messages[INUSE_ATTRIBUTE_ERR] = "Attribute in use";

core.DOMException = function(code, message) {
this.code = code;
Expand Down

0 comments on commit a4a9ae8

Please sign in to comment.