Closed Bug 1318086 Opened 8 years ago Closed 8 years ago

Move sanitizeArgs into DOMLocalization

Categories

(L20n :: JS Library, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: stas)

References

Details

Attachments

(1 file)

40 bytes, text/x-github-pull-request
zbraniecki
: review+
Details | Review
Now that bug 1316083 has landed we should move the sanitizeArgs logic to DOMLocalization.  it sanitizes HTML tags and entities. It will also help with bug 1288443.
Attached file Pull request
Zibi, in this PR I've moved sanitizeArgs to be a method of DOMLocalization, and entityFromContext and valueFromContext to be methods of Localization.  This should help in scenarios where we'd benefit from overriding entityFromContext in a subclass, e.g. in DOMLocalization to implement a special fallback for XUL labels (bug 1288443).
Assignee: nobody → stas
Status: NEW → ASSIGNED
Attachment #8811441 - Flags: review?(gandalf)
Comment on attachment 8811441 [details] [review]
Pull request

r+
Attachment #8811441 - Flags: review?(gandalf) → review+
https://hg.mozilla.org/projects/larch/rev/3b73e706c1b0e4c65e8350fca520e3129ed99a9f
Bug 1318086 - Allow subclasses to override sanitizeArgs etc. r=gandalf
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: