Closed Bug 167867 Opened 22 years ago Closed 22 years ago

unicodeToEntity should use regexps

Categories

(Other Applications :: DOM Inspector, defect)

x86
Linux
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: caillon, Assigned: caillon)

References

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

Timeless pointed out that we could use JS regexps to make the code in
viewPartialSource.js and dom.js more performant.
Attached patch Something like this (obsolete) — Splinter Review
I couldn't figure out how to trigger the code in viewPartialSource.js -- it
seems it only gets triggered for mathML bits, but I was unable even then to get
it to be called successfully so I couldn't test it there.  That
notwithstanding, this should do the trick since it works great in Inspector.
Attachment #99114 - Attachment is obsolete: true
Attachment #99823 - Flags: review+
filed bug 172302 about unifying the two impls
Blocks: 172302
Comment on attachment 99823 [details] [diff] [review]
More robust regexp

sr=bzbarsky; maybe it's time for a util file of some sort?  ;)

(oh and that use of function in a regexp is _sweet_!  I never knew you could do
that).
Attachment #99823 - Flags: superreview+
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Other Applications
QA Contact: timeless → dom-inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: