Closed Bug 76689 Opened 24 years ago Closed 24 years ago

non-ASCII xml end tag in view source display as comment

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: ftang, Assigned: ftang)

References

Details

(Keywords: intl, Whiteboard: r=/sr= done, wait for tree open 2001-05-09 07:47)

Attachments

(2 files)

Reproduce procedure 1. view a xml which use non-ASCII (say greek) as element 2. xml display correctly 3. select "view:view source" expect result see the xml as the source actual result everything else looks fine (if the encoding="" is present in the <?xml ...> ) but the end tag always display as comment <!XXX>
Attached file chinese xml page
What happen is we use expat as xml tokenizer but use nsHTMLTokenizer for xml view source. and in the nsHTMLTokenizer, we assume all the tag name in the end tag should be in ASCII alpha- which is not the case for xml. talk to harishd and decide to change the logic to the folllowing the origional logic if we get a '<' and a '/' and the next char is ascii alpha or '>' , consume it as end tag, otherwise, consume it as comment tag new logic do the same thing for html , but for xml and xhtml, also consume it as end tag if the next char is not ascii
Attached patch patchSplinter Review
harisd- can you review this patch as module owner?
r=harishd 3 weeks ago. mark it as assigned. blizzard - can you sr this one?
Status: NEW → ASSIGNED
somehow the xml view source us html tokenizer and it assume the tag have to be in ASCII. Howerver, in XML all the element could be in non ascii base characters.
Whiteboard: request superreview 2001-05-08 00:25
request for sr after harishd review two weeks ago.
Target Milestone: --- → mozilla0.9.1
sr=blizzard
Whiteboard: request superreview 2001-05-08 00:25 → r=/sr= done, wait for tree open 2001-05-09 07:47
fix and check in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 79800 has been marked as a duplicate of this bug. ***
Changed QA contact to teruko@netscape.com.
Keywords: intl
QA Contact: bsharma → teruko
Verified as fixed in 5-11-08 Win32, Linux, and Mac build.
Status: RESOLVED → VERIFIED
SPAM. HTML Element component deprecated, changing component to Layout. See bug 88132 for details.
Component: HTML Element → Layout
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: