зеркало из https://github.com/mozilla/pjs.git
fixed unicode issues (Marina Mechtcheriakova)
This commit is contained in:
Родитель
696e82c222
Коммит
c56cc81bcc
|
@ -20,12 +20,19 @@
|
|||
* Contributor(s):
|
||||
* Tom Kneeland, tomk@mitre.org
|
||||
* -- original author.
|
||||
*
|
||||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- finished implementation. Too many changes to list here.
|
||||
*
|
||||
* Bob Miller, Oblix Inc., kbob@oblix.com
|
||||
* -- fixed assignment to "true" to be MB_TRUE, in ::parse()
|
||||
*
|
||||
* $Id: XMLParser.cpp,v 1.2 1999-11-15 07:12:54 nisheeth%netscape.com Exp $
|
||||
* Marina Mechtcheriakova, mmarina@mindspring.com
|
||||
* -- UNICODE fix in method startElement, changed casting of
|
||||
* char* to DOM_CHAR* to use the proper String constructor,
|
||||
* see method startElement
|
||||
*
|
||||
* $Id: XMLParser.cpp,v 1.3 2000-03-27 07:30:18 kvisco%ziplink.net Exp $
|
||||
*/
|
||||
|
||||
#include "XMLParser.h"
|
||||
|
@ -128,7 +135,8 @@ void startElement(void *userData, const XML_Char *name, const XML_Char **atts)
|
|||
DOM_CHAR* attValue;
|
||||
XML_Char** theAtts = (XML_Char**)atts;
|
||||
|
||||
newElement = ps->document->createElement((DOM_CHAR*) name);
|
||||
String nodeName(name);
|
||||
newElement = ps->document->createElement(nodeName);
|
||||
|
||||
while (*theAtts)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче