Bug 13719

Summary: Setting an href or src DOM attribute to null does not give the same results as Firefox
Product: WebKit Reporter: Sam Weinig <sam@webkit.org>
Component: HTML DOMAssignee: Nobody <webkit-unassigned@lists.webkit.org>
Status: NEW    
Severity: Normal CC: alice.barraclough@webkit.org, magic@magicninja.org
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Macintosh   
OS: Mac OS X 10.4   
Attachments:
Description Flags
An html page to manually check the several browsers none

Description From 2007-05-14 19:02:42 PST
When setting an href or src DOM attribute (eg. HTMLLinkElement.href or HTMLIFrameElement.src) we set the attribute to the null string while Firefox sets it to a URL to the page it self.  We should investigate what IE does and decide which behavior is most appropriate.
------- Comment #1 From 2007-08-20 04:18:05 PST -------
Created an attachment (id=16029) [details]
An html page to manually check the several browsers

This test case allows to set a full url or null to the href attribute. Then it displays the final value of the href.

When i click on "Set to null":
- with IE6 (XP, SP2) i get: "href is now:null"
- with FF 2.0.0.6 i get: "href is now:file:///C:/Documents%20and%20Settings/ricardvi/Desktop/13719.html" (which is the local url to the test case on my box)

Hope this test help to choice the behavior for webkit :)