bug 122877 r=bratell sr=jst a=asa patch=t_mutreja@yahoo.com
case insensitive matching for attributes (HREF != href) git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@120177 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#include "nsParserCIID.h"
|
||||
#include "nsContentUtils.h"
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsUnicharUtils.h"
|
||||
|
||||
static NS_DEFINE_CID(kLWBrkCID, NS_LWBRK_CID);
|
||||
static NS_DEFINE_CID(kParserServiceCID, NS_PARSERSERVICE_CID);
|
||||
@@ -1683,7 +1684,7 @@ nsPlainTextSerializer::GetAttributeValue(nsIAtom* aName,
|
||||
PRInt32 count = mParserNode->GetAttributeCount();
|
||||
for (PRInt32 i=0;i<count;i++) {
|
||||
const nsAString& key = mParserNode->GetKeyAt(i);
|
||||
if (key.Equals(name)) {
|
||||
if (key.Equals(name, nsCaseInsensitiveStringComparator())) {
|
||||
aValueRet = mParserNode->GetValueAt(i);
|
||||
aValueRet.StripChars("\"");
|
||||
return NS_OK;
|
||||
|
||||
Reference in New Issue
Block a user