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:
jst%netscape.com
2003-03-22 03:24:57 +00:00
parent 48cef544f1
commit f18b61aff9

View File

@@ -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) )