Closed
Bug 1080451
Opened 10 years ago
Closed 7 years ago
Refine replaceWithHighlight function during searching a contact
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: selee, Unassigned)
References
Details
(In reply to Sergi Mansilla [:sergi] (Telenor) from bug 1078978 comment #4)
> Comment on attachment 8500814 [details]
> Pull request for master
>
> Hi Sean,
>
> Thanks for your patch. I gave it an r- for two reasons (both of which are
> not your fault at all, but of the previous code):
>
> - I find the code confusing and this is a good opportunity to make it
> better. That RegExp is giving me an eyesore.
>
> - I believe there is a project-wide decision of not using `innerHTML` to
> manipulate the DOM due to security concerns; it would be great if you can
> use normal DOM manipulation. This code could use a DocumentFragment to build
> the final result, for example.
>
> Cheers!
Reporter | ||
Comment 1•10 years ago
|
||
Thanks for Sergi's comments.
Because the previous bug 1078978 is with 2.0m flag, we create a this bug to discuss how to avoid using innerHTML and too complex regexp.
Comment 2•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•