Created attachment 626258 [details] [diff] [review]
6% we spend for it (for bug 732872 case), most of time is spent for URI computation for nsHTMLAnchorElement.
the nsHTMLAnchorElement fix isn't nice but probably ok (if all this code is going to be reworked one day).
Comment on attachment 626258 [details] [diff] [review]
Is there a reason this isn't an nsContentUtils method? And if it really always takes an element, the argument should be Element.
Past that, I guess this is OK...
Created attachment 626318 [details] [diff] [review]
Comment on attachment 626318 [details] [diff] [review]
Er, also please nuke the DEBUG_dr chunk and the no-op StripChars business.
r=me with that.