[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

hyatt hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:09:51 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit e3571c92a8696a4f0faf33343bc0ab147829139a
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Nov 27 10:11:17 2002 +0000

    	Fix <br clear=""> and <br clear> to just behave like <br>
    	rather than <br clear="all">.  Matches behavior in other
    	browsers.
    
            * khtml/html/html_inlineimpl.cpp:
            (HTMLBRElementImpl::parseAttribute):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2893 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index 7dec167..956ec19 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,5 +1,14 @@
 2002-11-27  David Hyatt  <hyatt at apple.com>
 
+	Fix <br clear=""> and <br clear> to just behave like <br>
+	rather than <br clear="all">.  Matches behavior in other
+	browsers.
+	
+        * khtml/html/html_inlineimpl.cpp:
+        (HTMLBRElementImpl::parseAttribute):
+
+2002-11-27  David Hyatt  <hyatt at apple.com>
+
         Numerous overflow: hidden improvements to fix espn.com.
 
 	First stop absolute positioned overflow hidden elements
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 7dec167..956ec19 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,5 +1,14 @@
 2002-11-27  David Hyatt  <hyatt at apple.com>
 
+	Fix <br clear=""> and <br clear> to just behave like <br>
+	rather than <br clear="all">.  Matches behavior in other
+	browsers.
+	
+        * khtml/html/html_inlineimpl.cpp:
+        (HTMLBRElementImpl::parseAttribute):
+
+2002-11-27  David Hyatt  <hyatt at apple.com>
+
         Numerous overflow: hidden improvements to fix espn.com.
 
 	First stop absolute positioned overflow hidden elements
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 7dec167..956ec19 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,14 @@
 2002-11-27  David Hyatt  <hyatt at apple.com>
 
+	Fix <br clear=""> and <br clear> to just behave like <br>
+	rather than <br clear="all">.  Matches behavior in other
+	browsers.
+	
+        * khtml/html/html_inlineimpl.cpp:
+        (HTMLBRElementImpl::parseAttribute):
+
+2002-11-27  David Hyatt  <hyatt at apple.com>
+
         Numerous overflow: hidden improvements to fix espn.com.
 
 	First stop absolute positioned overflow hidden elements
diff --git a/WebCore/khtml/html/html_inlineimpl.cpp b/WebCore/khtml/html/html_inlineimpl.cpp
index 42c2374..0910124 100644
--- a/WebCore/khtml/html/html_inlineimpl.cpp
+++ b/WebCore/khtml/html/html_inlineimpl.cpp
@@ -196,8 +196,16 @@ void HTMLBRElementImpl::parseAttribute(AttributeImpl *attr)
     case ATTR_CLEAR:
     {
         DOMString str = attr->value();
-        if( strcasecmp (str,"all")==0 || str.isEmpty() ) str = "both";
-        addCSSProperty(CSS_PROP_CLEAR, str);
+        // If the string is empty, then remove the clear property. 
+        // <br clear> and <br clear=""> are just treated like <br> by Gecko,
+        // Mac IE, etc. -dwh
+        if (str.isEmpty())
+            removeCSSProperty(CSS_PROP_CLEAR);
+        else {
+            if (strcasecmp (str,"all")==0) 
+                str = "both";
+            addCSSProperty(CSS_PROP_CLEAR, str);
+        }
         break;
     }
     default:

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list