Index: parser/htmlparser/src/nsParserService.cpp
Merging patch by me (from mozilla/htmlparser). Fix for bug 237186 (document.createAttribute, document.createElement, etc need to throw INVALID_CHARACTER_ERR for empty names). r/sr=jst, a=chofmann. git-svn-id: svn://10.0.0.236/trunk@155378 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -204,8 +204,8 @@ nsParserService::CheckQName(const nsASingleFragmentString& aQName,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// MOZ_EXPAT_INVALID_CHARACTER
|
||||
if (result & (1 << 1)) {
|
||||
// MOZ_EXPAT_EMPTY_QNAME || MOZ_EXPAT_INVALID_CHARACTER
|
||||
if (result & (1 << 0) || result & (1 << 1)) {
|
||||
return NS_ERROR_DOM_INVALID_CHARACTER_ERR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user