Removed the use-tag-namespace-as-default-namespace hack (well, #ifdef'd it out, anyway).

This commit is contained in:
waterson%netscape.com 1999-02-24 19:25:14 +00:00
Родитель b00bc8dbc9
Коммит b49aa431b2
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1025,11 +1025,14 @@ XULContentSinkImpl::AddAttributes(const nsIParserNode& aNode,
v = aNode.GetValueAt(i);
nsRDFParserUtils::StripAndConvert(v);
#define USE_TAG_NAMESPACE_AS_DEFAULT_NAMESPACE
//#define USE_TAG_NAMESPACE_AS_DEFAULT_NAMESPACE
#ifdef USE_TAG_NAMESPACE_AS_DEFAULT_NAMESPACE
// XXX This is a hack that I'm not sure is legal: as a last
// ditch effort, we treat attributes with an unknown (or no)
// namespace as being in the same namespace as the tag itself.
// XXX Note, for this to really work right, you need to make
// sure to do this in GetXULIDAttribute(), too...
if ((nameSpaceID == kNameSpaceID_Unknown) ||
(nameSpaceID == kNameSpaceID_None)) {
nsAutoString tag = aNode.GetText();