зеркало из https://github.com/mozilla/gecko-dev.git
Altered anonymous resources to be produced with a hash mark, so they look more like anchors.
This commit is contained in:
Родитель
a807e42440
Коммит
8d4d9030f7
|
@ -424,7 +424,7 @@ static PRUint32 gCounter = 0;
|
|||
|
||||
do {
|
||||
nsAutoString s(aContextURI);
|
||||
s.Append('$');
|
||||
s.Append("#$");
|
||||
s.Append(++gCounter, 10);
|
||||
|
||||
nsIRDFResource* resource;
|
||||
|
@ -464,7 +464,7 @@ rdf_IsAnonymousResource(const nsString& aContextURI, nsIRDFResource* aResource)
|
|||
uri.Cut(0, aContextURI.Length());
|
||||
|
||||
// Anonymous resources look like the regexp "\$[0-9]+"
|
||||
if (uri[0] != '$')
|
||||
if (uri[0] != '#' || uri[1] != '$')
|
||||
return PR_FALSE;
|
||||
|
||||
for (PRInt32 i = uri.Length() - 1; i >= 1; --i) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче