Closed
Bug 247537
Opened 21 years ago
Closed 21 years ago
IHtmlElement::insertAdjacentHtml & put_id implementations
Categories
(Core Graveyard :: Embedding: ActiveX Wrapper, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: atremon, Assigned: atremon)
Details
Attachments
(1 file, 2 obsolete files)
|
4.02 KB,
patch
|
Details | Diff | Splinter Review |
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 | ||
Updated•21 years ago
|
Assignee: adamlock → atremon
| Assignee | ||
Comment 1•21 years ago
|
||
IHtmlElement::insertAdjacentHtml & put_id implementations in CIEHtmlElement
| Assignee | ||
Updated•21 years ago
|
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+
| Assignee | ||
Comment 3•21 years ago
|
||
| Assignee | ||
Updated•21 years ago
|
Attachment #151128 -
Attachment is obsolete: true
| Assignee | ||
Updated•21 years ago
|
Attachment #155912 -
Flags: superreview?(jst)
Comment 4•21 years ago
|
||
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+
Comment 5•21 years ago
|
||
Forgot to mention that the nsAutoString in CIEHtmlElement::insertAdjacentHTML()
could be an nsDependentString too, unless I missed something...
| Assignee | ||
Comment 6•21 years ago
|
||
(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 ... :-)
| Assignee | ||
Comment 7•21 years ago
|
||
Attachment #155912 -
Attachment is obsolete: true
| Assignee | ||
Comment 8•21 years ago
|
||
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
Comment 10•19 years ago
|
||
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
| Assignee | ||
Comment 11•19 years ago
|
||
> 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.
Updated•13 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•