Closed Bug 251528 Opened 20 years ago Closed 20 years ago

bad display or interpretation while viewing source contains cfm tag

Categories

(Toolkit :: View Source, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 57724

People

(Reporter: jrouvier, Assigned: bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2

hi,

there a very strange problem in the view source component. i want to print some
coldfusion tag before write it in a file, and the view source component seems to
interpret the text. i have test with IE and it works fine.



Reproducible: Always
Steps to Reproduce:
try to print a coldfusion tag in the source, and view it with view source, here
are the differents string i want to print :

1.<cfset label_MonCompte = "Mon compte">
2.<cfset label_MonCompte =- "Mon compte">
3.<cfset label_txt_membre =- "Pas encore membre ? <b>Rejoignez-nous !</b>">

all of this examples work fine with IE, when i display the source all is right.

you can see that at the url http://newffr.com/firefox_bug/index.html, test with
IE, then firefox.
Actual Results:  
view source show me that :

1.<cfset label_MonCompte =" Mon compte">
the space after the "=" is not at the same position

2.<cfset label_MonCompte =- Mon compte>
the quotes are not here... but it can be more strange :

3.<cfset label_txt_membre =- Pas encore membre ? ><b>Rejoignez-nous !</b>">
if the string contains html tag, only one quote is not here. and a "gt" is not
at his position.

Expected Results:  
1.<cfset label_MonCompte = "Mon compte">
2.<cfset label_MonCompte =- "Mon compte">
3.<cfset label_txt_membre =- "Pas encore membre ? <b>Rejoignez-nous !</b>">

it is a default installation of firefox 0.9.2
I have a similar problem with source corruption.
This is an example of what some code looks like when opened with a text editor,
which looks fine when interpreted by IE:

<pre>
void print(int* array, int curr, int size)
{
	if(curr == size)
		cout<<endl;

	else
	{
		cout<<array[curr]<<" ";

		print(array, curr + 1, size);
	}//end else
}//end print
</pre>


And yet this is what that same code looks like when interpreted in a Firefox
0.9.3 browser window:

void print(int* array, int curr, int size)
{
	if(curr == size)
		cout<<<<" ";

		print(array, curr + 1, size);
	}//end else
}//end print


And this is what the text looks like in the View Source window:

<pre>
void print(int* array, int curr, int size)
{
	if(curr == size)
		cout<<endl;

	else
	{
		cout><<array[curr]><<" ";

		print(array, curr + 1, size);
	}//end else
}//end print
</pre>

You'll notice that there's two extra "greater than" symbols on the cout array
line, which seems to be causing some of the text to be interpreted and ignored
as unknown html tags.

I think this problem may be more fundamental than the source viewer since
there's obvious problems in the main browser window's display of the code.

My system is Windows XP Pro with SP2.
Confirmed on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
Gecko/20040803 Firefox/0.9.3
Status: UNCONFIRMED → NEW
Ever confirmed: true
gavin_sharp+bugzilla@nospin.org: please don't confirm duplicates
Whiteboard: DUPEME
There is a whole mess of bugs for this under Browser. Why all these bugs were
opened to depends is beyond me. Bug 188609 appears to be the root cause and bug
57724 appears to be the main tracker as far as I can see. I will resolve as
duplicate of bug 57724 for now, please feel free to correct it if you deem it
necessary.

*** This bug has been marked as a duplicate of 57724 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Whiteboard: DUPEME
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.