DescriptionMerge 67292 - 2010-09-11 Mihai Parparita <mihaip@chromium.org>
Reviewed by Adam Barth.
URIs in styles created via innerHTML are not resolved against the document's base URI
https://bugs.webkit.org/show_bug.cgi?id=45565
Add test to read back the background image URL from an element that was
created via innerHTML (reduction of http://crbug.com/55023).
* fast/innerHTML/innerHTML-uri-resolution-expected.txt: Added.
* fast/innerHTML/innerHTML-uri-resolution.html: Added.
2010-09-11 Mihai Parparita <mihaip@chromium.org>
Reviewed by Adam Barth.
URIs in styles created via innerHTML are not resolved against the document's base URI
https://bugs.webkit.org/show_bug.cgi?id=45565
The dummy document used for fragment parsing created by
FragmentParsingContext should use the base URI of the fragment's
document. Since (HTML)Document doesn't expose a setter for the base URI
(and shouldn't), we allow it to be set by the constructor/create
function.
Also remove some obsolete code that references the legacy tree builder
from HTMLElement that I happened to notice.
Test: fast/innerHTML/innerHTML-uri-resolution.html
* dom/Document.cpp:
(WebCore::Document::Document):
* dom/Document.h:
* html/HTMLDocument.cpp:
(WebCore::HTMLDocument::HTMLDocument):
* html/HTMLDocument.h:
(WebCore::HTMLDocument::create):
* html/HTMLElement.cpp:
(WebCore::createFragmentFromSource):
(WebCore::HTMLElement::setInnerHTML):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext):
BUG=56034
TBR=mihaip@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67732
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|