зеркало из https://github.com/mozilla/gecko-dev.git
Bug 187252 Provide ?? mechanism to insert literal ? in templates r=varga sr=ben
This commit is contained in:
Родитель
01eb104cf2
Коммит
3f23b6f2e9
|
@ -941,6 +941,13 @@ nsXULTemplateBuilder::ParseAttribute(const nsAString& aAttributeValue,
|
|||
(*aTextCallback)(this, Substring(mark, backup), aClosure);
|
||||
}
|
||||
|
||||
if (*iter == PRUnichar('?')) {
|
||||
// Well, it was not really a variable, but "??". We use one
|
||||
// question mark (the second one, actually) literally.
|
||||
mark = iter;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Construct a substring that is the symbol we need to look up
|
||||
// in the rule's symbol table. The symbol is terminated by a
|
||||
// space character, a caret, or the end of the string,
|
||||
|
|
Загрузка…
Ссылка в новой задаче