Bug 151569

Summary: [Win] Implement methods to get and set inner html.
Product: WebKit Reporter: peavo
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
achristensen: review+, buildbot: commit-queue-
Archive of layout-test-results from ews116 for mac-yosemite none

Description peavo 2015-11-23 11:13:55 PST
DOMHTMLElement::innerHTML and DOMHTMLElement::setInnerHTML are not implemented on Windows yet.
Comment 1 peavo 2015-11-23 11:19:08 PST
Created attachment 266092 [details]
Patch
Comment 2 peavo 2015-11-23 11:30:04 PST
Created attachment 266093 [details]
Patch
Comment 3 Build Bot 2015-11-23 12:22:03 PST
Comment on attachment 266093 [details]
Patch

Attachment 266093 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/468549

New failing tests:
js/property-name-enumerator-gc-151495.html
Comment 4 Build Bot 2015-11-23 12:22:05 PST
Created attachment 266094 [details]
Archive of layout-test-results from ews116 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews116  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 5 Alex Christensen 2015-11-23 14:22:17 PST
Comment on attachment 266093 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=266093&action=review

This looks a lot like the innerText implementation just below it :)
r=me, mac test failures unrelated.

> Source/WebKit/win/DOMHTMLClasses.cpp:507
> +    String innerHtmlString = downcast<HTMLElement>(m_element)->innerHTML();

innerHTMLString

> Source/WebKit/win/DOMHTMLClasses.cpp:515
> +    HTMLElement* htmlElement = downcast<HTMLElement>(m_element);

Why don't you also rename setInnerText's htmlEle to htmlElement while you're at it.
Comment 6 peavo 2015-11-24 00:39:58 PST
Committed r192762: <http://trac.webkit.org/changeset/192762>.
Comment 7 peavo 2015-11-24 00:41:30 PST
(In reply to comment #5)
> Comment on attachment 266093 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=266093&action=review
> 
> This looks a lot like the innerText implementation just below it :)
> r=me, mac test failures unrelated.
> 

Yes, I must admit I was highly inspired by this code when I sat down to write this method :)

Thanks for reviewing :)