1) Added support for loading an XML document "out of band" from script and manipulating it via dom interfaces.
2) Fixed compile errors in XSL glue code that happened after the recent nsString landing by scc. 3) Added a check for a null URI before de-referencing it in nsCodeBasePrincipal.cpp. git-svn-id: svn://10.0.0.236/trunk@67709 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -305,6 +305,11 @@ nsIParserFilter * nsParser::SetParserFilter(nsIParserFilter * aFilter)
|
||||
}
|
||||
|
||||
|
||||
void nsParser::GetCommand(nsString& aCommand)
|
||||
{
|
||||
aCommand = mCommandStr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call this method once you've created a parser, and want to instruct it
|
||||
* about the command which caused the parser to be constructed. For example,
|
||||
@@ -319,6 +324,7 @@ void nsParser::SetCommand(const char* aCommand){
|
||||
if(theCommand.Equals(kViewSourceCommand))
|
||||
mCommand=eViewSource;
|
||||
else mCommand=eViewNormal;
|
||||
mCommandStr.AssignWithConversion(aCommand);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user