Skip to content
Snippets Groups Projects
Commit 0080b2d6 authored by Arthur Edelstein's avatar Arthur Edelstein Committed by Georg Koppen
Browse files

Bug 18914: Use English-only label in <isindex/> tags

parent 3afa7368
Branches
Tags
No related merge requests found
......@@ -474,11 +474,16 @@ nsHtml5TreeOperation::SetFormElement(nsIContent* aNode, nsIContent* aParent)
nsresult
nsHtml5TreeOperation::AppendIsindexPrompt(nsIContent* parent, nsHtml5DocumentBuilder* aBuilder)
{
/*
nsXPIDLString prompt;
nsresult rv =
nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"IsIndexPromptWithSpace", prompt);
*/
nsString prompt(NS_LITERAL_STRING(
"This is a searchable index. Enter search keywords:\u0020"));
uint32_t len = prompt.Length();
/*
if (NS_FAILED(rv)) {
return rv;
}
......@@ -486,6 +491,7 @@ nsHtml5TreeOperation::AppendIsindexPrompt(nsIContent* parent, nsHtml5DocumentBui
// Don't bother appending a zero-length text node.
return NS_OK;
}
*/
return AppendText(prompt.BeginReading(), len, parent, aBuilder);
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment