Closed Bug 247537 Opened 21 years ago Closed 21 years ago

IHtmlElement::insertAdjacentHtml & put_id implementations

Categories

(Core Graveyard :: Embedding: ActiveX Wrapper, enhancement)

x86
Windows 2000
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: atremon, Assigned: atremon)

Details

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 IHtmlElement::insertAdjacentHtml & put_id implementations are not yet provided in CIEHtmlElement Reproducible: Always Steps to Reproduce:
Assignee: adamlock → atremon
IHtmlElement::insertAdjacentHtml & put_id implementations in CIEHtmlElement
Attachment #151128 - Flags: review?(adamlock)
Comment on attachment 151128 [details] [diff] [review] IHtmlElement::insertAdjacentHtml & put_id implementations insertAdjacentHTML needs a USES_CONVERSION macro and OLE2CW instead of OLE2W. Otherwise r=adamlock
Attachment #151128 - Flags: review?(adamlock) → review+
Attached patch Uses_Conversion & OLE2CW (obsolete) — Splinter Review
Attachment #151128 - Attachment is obsolete: true
Attachment #155912 - Flags: superreview?(jst)
Comment on attachment 155912 [details] [diff] [review] Uses_Conversion & OLE2CW - In CIEHtmlElement::put_id(): + nsAutoString strID(OLE2CW(v)); Any reason not to use nsDependentString here to avoid a string copy and possibly a malloc/free? - In CIEHtmlElement::get_id(): + return SUCCEEDED(rv)?S_OK: E_FAIL; Maybe be more consistent with spacing around the operators there (and in all other occurances), how about: + return SUCCEEDED(rv) ? S_OK : E_FAIL; sr=jst
Attachment #155912 - Flags: superreview?(jst) → superreview+
Forgot to mention that the nsAutoString in CIEHtmlElement::insertAdjacentHTML() could be an nsDependentString too, unless I missed something...
(In reply to comment #5) > Forgot to mention that the nsAutoString in CIEHtmlElement::insertAdjacentHTML() > could be an nsDependentString too, unless I missed something... Thanks for reviewing, Johnny! nsAutoString makes a copy of the buffer, unlike nsDependentString, is that it? Even with the string guide, I don't know much of the subtelties of Mozilla's strings yet ... :-)
Attachment #155912 - Attachment is obsolete: true
Adam, Can you check in this patch for me? Thanks!
Fix checked in with one minor modification to add a missing #include "nsIDOMHtmlElement.h" that may have been included by something else originally but isn't anymore.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
How does one use insertAdjacentHTML? If I go some place such as: http://webfx.eae.net/bombProject/bomberman.html I get this on the js console: Error: document.body.insertAdjacentHTML is not a function Source File: http://webfx.eae.net/bombProject/bomberman.html Line: 39
> How does one use insertAdjacentHTML? If I go some place such as: > > http://webfx.eae.net/bombProject/bomberman.html > I suppose you use your browser on that page. InserAdjacentHtml is not implemented in seamonkey/firefox. This here is about the ActiveX control, a bridge that can be used by apps where you want to replace the ShellDocView control (IE) by Gecko.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: