[Webkit-unassigned] [Bug 18951] all DOM operations stop working when location.hash set to '#'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 8 15:36:35 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18951





------- Comment #3 from ian.eng.webkit at gmail.com  2008-05-08 15:36 PDT -------
I tried this patch on my local build, and it fixes the issue described by Nick.
Does this change has side-effect? and why '#' makes difference?

Index: KURL.cpp
===================================================================
--- KURL.cpp    (revision 32987)
+++ KURL.cpp    (working copy)
@@ -705,7 +705,7 @@ void KURL::setRef(const String& s)
 {
     if (!m_isValid)
         return;
-    parse(m_string.left(m_queryEnd) + (s.isEmpty() ? "" : "#" + s));
+    parse(m_string.left(m_queryEnd) + "#" + s);
 }


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list