Fix init of HTML documents to set the right case-sensitivity on the CSS parser

even for XSLT.  Bug 322461, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@187052 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-01-06 02:53:10 +00:00
parent 6f16aab4a8
commit de7f7589f3
2 changed files with 10 additions and 1 deletions

View File

@@ -321,7 +321,8 @@ IdAndNameHashInitEntry(PLDHashTable *table, PLDHashEntryHdr *entry,
// bother initializing members to 0.
nsHTMLDocument::nsHTMLDocument()
: mCompatMode(eCompatibility_NavQuirks)
: mCompatMode(eCompatibility_NavQuirks),
mDefaultNamespaceID(kNameSpaceID_None)
{
// NOTE! nsDocument::operator new() zeroes out all members, so don't
@@ -356,6 +357,12 @@ nsHTMLDocument::Init()
nsresult rv = nsDocument::Init();
NS_ENSURE_SUCCESS(rv, rv);
// Now reset the case-sensitivity of the CSSLoader, since we default
// to being HTML, not XHTML. Also, reset the compatibility mode to
// match our compat mode.
CSSLoader()->SetCaseSensitive(IsXHTML());
CSSLoader()->SetCompatibilityMode(mCompatMode);
static PLDHashTableOps hash_table_ops =
{
PL_DHashAllocTable,