Fixing silly placement of '||'. No code change.
git-svn-id: svn://10.0.0.236/trunk@140033 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -199,8 +199,8 @@ nsHTMLContentSerializer::AppendDocumentStart(nsIDOMDocument *aDocument,
|
||||
PRBool
|
||||
nsHTMLContentSerializer::IsJavaScript(nsIAtom* aAttrNameAtom, const nsAString& aValueString)
|
||||
{
|
||||
if (aAttrNameAtom == nsHTMLAtoms::href
|
||||
|| aAttrNameAtom == nsHTMLAtoms::src) {
|
||||
if (aAttrNameAtom == nsHTMLAtoms::href ||
|
||||
aAttrNameAtom == nsHTMLAtoms::src) {
|
||||
static const char kJavaScript[] = "javascript";
|
||||
PRInt32 pos = aValueString.FindChar(':');
|
||||
if ( pos < (PRInt32)(sizeof kJavaScript - 1) )
|
||||
|
||||
Reference in New Issue
Block a user