Closed
Bug 209485
Opened 21 years ago
Closed 21 years ago
[FIX]View source eats parts of CDATA sections when ']' encountered
Categories
(Core Graveyard :: View Source, defect, P2)
Core Graveyard
View Source
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.5alpha
People
(Reporter: bzbarsky, Assigned: bzbarsky)
Details
Attachments
(1 file)
2.54 KB,
patch
|
harishd
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
Typical XBL markup: <constructor> <![CDATA[ var foo = Components.classes["contractfoo"]; var bar = 5; ]]> </constructor> When one views the source, everything between the first ']' and the ending '>' is dropped, due to the patch that was checked in for bug 130045.
Assignee | ||
Comment 1•21 years ago
|
||
This does not make things completely correct, but it should fix the 99% case for scripts in XML... To do this completely correctly, view-source would need to use a real XML tokenizer for XML content.
Assignee | ||
Updated•21 years ago
|
Attachment #125702 -
Attachment filename: 琀攀猀琀⸀瀀愀琀挀栀 → test.patch
Attachment #125702 -
Flags: superreview?(heikki)
Attachment #125702 -
Flags: review?(harishd)
Assignee | ||
Updated•21 years ago
|
Priority: -- → P2
Summary: View source eats parts of CDATA sections when ']' encountered → [FIX]View source eats parts of CDATA sections when ']' encountered
Target Milestone: --- → mozilla1.5alpha
Comment 2•21 years ago
|
||
Just pointing out another reason to use an XML parser: view-source: doesn't handle extended doctypes properly e.g. <!DOCTYPE bindings [ <!ENTITY % tabBrowserDTD SYSTEM "chrome://global/locale/tabbrowser.dtd" > %tabBrowserDTD ]>
Comment on attachment 125702 [details] [diff] [review] Proposed change r=harishd
Attachment #125702 -
Flags: review?(harishd) → review+
Assignee | ||
Comment 4•21 years ago
|
||
Comment on attachment 125702 [details] [diff] [review] Proposed change jst, could you sr?
Attachment #125702 -
Flags: superreview?(heikki) → superreview?(jst)
Comment 5•21 years ago
|
||
Comment on attachment 125702 [details] [diff] [review] Proposed change sr=jst
Attachment #125702 -
Flags: superreview?(jst) → superreview+
Assignee | ||
Comment 6•21 years ago
|
||
Fixed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•