Open Bug 319626 Opened 19 years ago Updated 2 years ago

View Selection Source for XML is parsed as HTML

Categories

(Toolkit :: View Source, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: zcorpan, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051130 Firefox/1.6a1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051130 Firefox/1.6a1

The View Selection Source code should tell the parser
that it's parsing XML for XML documents.

Reproducible: Always

Steps to Reproduce:
1. Open data:application/xml,<p
xmlns="http://www.w3.org/1999/xhtml">foo<br/>bar</p>
2. Select All
3. View Selection Source
Actual Results:  
The slash is red.

Expected Results:  
The slash should be the same color as the angle brackets (black).
WFM with 1.5 build, but fails with a trunk build. Is it a trunk regression?
Confirming bug, it's present in a recent trunk build.  The test case is trivial to verify.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → Trunk
Product: Firefox → Toolkit
Seems to occur for my site in all versions of firefox, even as of 3.6 (beta.grantgalitz.com). As the site is in true XHTML (application/xhtml+xml), but the dom source is highlighted clearly as html.
Severity: trivial → S4
You need to log in before you can comment on or make changes to this bug.