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)
Core
Layout
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)
290 bytes,
text/xml
|
Details | |
1002 bytes,
patch
|
Details | Diff | Splinter Review |
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>
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
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
Assignee | ||
Comment 3•24 years ago
|
||
Assignee | ||
Comment 4•24 years ago
|
||
harisd- can you review this patch as module owner?
Assignee | ||
Comment 5•24 years ago
|
||
r=harishd 3 weeks ago.
mark it as assigned.
blizzard - can you sr this one?
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•24 years ago
|
||
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.
Assignee | ||
Updated•24 years ago
|
Whiteboard: request superreview 2001-05-08 00:25
Assignee | ||
Comment 7•24 years ago
|
||
request for sr after harishd review two weeks ago.
Target Milestone: --- → mozilla0.9.1
Comment 8•24 years ago
|
||
sr=blizzard
Assignee | ||
Updated•24 years ago
|
Whiteboard: request superreview 2001-05-08 00:25 → r=/sr= done, wait for tree open 2001-05-09 07:47
Assignee | ||
Comment 9•24 years ago
|
||
fix and check in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
![]() |
||
Comment 10•24 years ago
|
||
*** Bug 79800 has been marked as a duplicate of this bug. ***
Comment 11•24 years ago
|
||
Changed QA contact to teruko@netscape.com.
Keywords: intl
QA Contact: bsharma → teruko
Comment 12•24 years ago
|
||
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.
Description
•