Closed
Bug 451065
Opened 16 years ago
Closed 15 years ago
Replace invalid comments in suite's dtds with valid ones
Categories
(SeaMonkey :: MailNews: Message Display, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.0a1
People
(Reporter: rimas, Unassigned)
References
Details
Attachments
(1 file)
1.72 KB,
patch
|
mnyromyr
:
review+
|
Details | Diff | Splinter Review |
This patch should make compare-locales happier. It replaces two invalid comments in messenger.dtd with valid ones.
Reporter | ||
Updated•16 years ago
|
OS: Linux → All
Updated•16 years ago
|
Attachment #334307 -
Flags: review?(mnyromyr)
Updated•16 years ago
|
Assignee: kairo → mail
Component: General → MailNews: Message Display
QA Contact: general → search
Comment 1•16 years ago
|
||
Comment on attachment 334307 [details] [diff] [review] Patch (checked in) >-<!--Tooltips--> >+<!-- Tooltips --> >-<!---SearchBar--> >+<!-- SearchBar --> I'm all for qualifying these comments as ugly, but they're valid XML as per <http://www.w3.org/TR/xml/#sec-comments>: [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' Let's make a deal, Rimas: I'll r+ this as a deuglification, if you file a bug (and link it here) against compare-locales, because it's violating the XML spec. ;-)
Attachment #334307 -
Flags: review?(mnyromyr) → review+
Reporter | ||
Comment 2•16 years ago
|
||
I'm not good at reading that syntax. And I'm not sure what product/component to file a bug on either. CC'ing Pike, hopefully he'll read that when he's done with what he's doing now.
Comment 3•16 years ago
|
||
Karsten, they are not valid per your quote. It requires "<!--" + space + ... "<!--x" or whatever non-space is wrong. Also "<!-- text -- oooops -->" is not valid per those productions, since it won't generate any double dash. There are other invalid xml comments around. Should I file a new bug or attach a new patch here?
Comment 4•16 years ago
|
||
> It requires "<!--" + space + ... Wrong. [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] /* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */ Thus space is NOT a special character here and since there is no explicit space in [15], a comment "<!--x-->" is perfectly legal. Mind: The * in [15] means that you can leave out everything and still have a valid comment "<!---->"! > Also "<!-- text -- oooops -->" is not valid per those productions, since it > won't generate any double dash. Correct. > There are other invalid xml comments around. Should I file a new bug or > attach a new patch here? If they're really invalid, you can put patches here, as long as it's open.
Comment 5•16 years ago
|
||
(In reply to comment #1) > I'll r+ this as a deuglification, if you file a bug (and link it here) against > compare-locales, because it's violating the XML spec. ;-) Filed as bug 452923 - does this patch need checkin?
Comment 6•16 years ago
|
||
(In reply to comment #5) > (In reply to comment #1) > > I'll r+ this as a deuglification, if you file a bug (and link it here) against > > compare-locales, because it's violating the XML spec. ;-) > > Filed as bug 452923 - does this patch need checkin? Per comment #4, this patch won't be required if we fix bug 452923. But I wouldn't mark this bug as invalid right now.
Depends on: 452923
Summary: Replace invalid comments in messenger.dtd with valid ones → Replace invalid comments in suite's dtds with valid ones
Comment 7•16 years ago
|
||
Fixing that bug will save us from a lot of "<!--LOCALIZATION" comment changes. We actually won't require the patch here. I have a WIP for bug 452923 that I should finish in a few hours.
Comment 8•16 years ago
|
||
Comment on attachment 334307 [details] [diff] [review] Patch (checked in) I checked this in as beautification.
Attachment #334307 -
Attachment description: Patch → Patch (checked in)
Comment 9•15 years ago
|
||
I there anything still to fix here or is this resolved?
Comment 10•15 years ago
|
||
Actually, re-reading this, it was about getting compare-locales to work and it does now, we are on dashboard even ;-)
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.0a1
You need to log in
before you can comment on or make changes to this bug.
Description
•