RESOLVED FIXED 16799
Acid3 expects HTMLObjectElement.data to canonicalize urls
https://bugs.webkit.org/show_bug.cgi?id=16799
Summary Acid3 expects HTMLObjectElement.data to canonicalize urls
Eric Seidel (no email)
Reported 2008-01-09 00:21:18 PST
Test 64: FAIL (expected ./test.html, got: test.html - object elements didn't resolve URIs correctly) function () { // test 64: attributes of the <object> element var obj1 = document.createElement('object'); obj1.setAttribute('data', 'test.html'); var obj2 = document.createElement('object'); obj2.setAttribute('data', './test.html'); assertEquals(obj1.data, obj2.data, "object elements didn't resolve URIs correctly"); assert(obj1.data.match(/^http:/), "object.data isn't absolute"); obj1.appendChild(document.createElement('param')); assertEquals(obj1.getElementsByTagName('param').length, 1, "object is missing its only child"); return 4; },
Attachments
Minimal test case (481 bytes, text/html)
2008-01-28 03:58 PST, Robert Blaut
no flags
Make data absolute (542 bytes, patch)
2008-02-04 15:22 PST, Dave Hyatt
mrowe: review+
Robert Blaut
Comment 1 2008-01-28 03:58:20 PST
Created attachment 18735 [details] Minimal test case
Dave Hyatt
Comment 2 2008-02-04 15:22:02 PST
Created attachment 18921 [details] Make data absolute Will land test case in bug.
Mark Rowe (bdash)
Comment 3 2008-02-04 15:24:16 PST
Comment on attachment 18921 [details] Make data absolute r=me
Darin Adler
Comment 4 2008-02-04 15:25:56 PST
Comment on attachment 18921 [details] Make data absolute + if (dataVal.isNull()) + return dataVal; You don't need this. Document::completeURL already does this. It can just be a one-liner. return document()->completeURL(getAttribute(dataAttr));
Darin Fisher (:fishd, Google)
Comment 5 2008-02-05 08:53:04 PST
*** Bug 14448 has been marked as a duplicate of this bug. ***
Darin Fisher (:fishd, Google)
Comment 6 2008-02-05 08:57:22 PST
you might want to review my patch in bug 14448, which includes a test case, but more importantly it had to be backed out after it was found to regress some existing layout tests!
Dave Hyatt
Comment 7 2008-02-06 11:26:43 PST
I will just remove those layout tests, as they make a bogus assumption.
Dave Hyatt
Comment 8 2008-02-06 11:29:57 PST
Fixed in r30044.
Note You need to log in before you can comment on or make changes to this bug.