Changeset 30044 in webkit
- Timestamp:
- Feb 6, 2008 11:26:14 AM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r30043 r30044 1 2008-02-06 David Hyatt <hyatt@apple.com> 2 3 Fix for bug 16799, object elements should return absolute URLs from .data. 4 5 Reviewed by Mark Rowe 6 7 * dom/Document.cpp: 8 (WebCore::Document::completeURL): 9 * html/HTMLAnchorElement.cpp: 10 (WebCore::HTMLAnchorElement::href): 11 * html/HTMLObjectElement.cpp: 12 (WebCore::HTMLObjectElement::data): 13 1 14 2008-02-05 Antti Koivisto <antti@apple.com> 2 15 -
trunk/WebCore/dom/Document.cpp
r30007 r30044 2817 2817 { 2818 2818 // FIXME: This always returns null when passed a null URL, unlike the DeprecatedString function above. 2819 // Code relies on this behavior, namely the href property of <a> and the data property of <object>. 2819 2820 if (url.isNull()) 2820 2821 return url; -
trunk/WebCore/html/HTMLAnchorElement.cpp
r25754 r30044 331 331 String HTMLAnchorElement::href() const 332 332 { 333 String href = getAttribute(hrefAttr); 334 if (href.isNull()) 335 return href; 336 return document()->completeURL(href); 333 return document()->completeURL(getAttribute(hrefAttr)); 337 334 } 338 335 -
trunk/WebCore/html/HTMLObjectElement.cpp
r29918 r30044 392 392 String HTMLObjectElement::data() const 393 393 { 394 return getAttribute(dataAttr);394 return document()->completeURL(getAttribute(dataAttr)); 395 395 } 396 396
Note: See TracChangeset
for help on using the changeset viewer.