Bug 187252 Provide ?? mechanism to insert literal ? in templates r=varga sr=ben
git-svn-id: svn://10.0.0.236/trunk@156720 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1f76e091b3
commit
b08b4776fa
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user