[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/khtml
From:       Allan Sandfeld Jensen <kde () carewolf ! com>
Date:       2005-03-22 20:02:04
Message-ID: 20050322200204.73C443C3 () office ! kde ! org
[Download RAW message or body]

CVS commit by carewolf: 

As suggested by www-style@w3.org:
Implement the correct white-space parsing for SGML attribute values.
BUG: 87528


  M +6 -1      ChangeLog   1.410
  M +9 -0      html/htmltokenizer.cpp   1.301


--- kdelibs/khtml/ChangeLog  #1.409:1.410
@@ -1,5 +1,10 @@
 2005-03-22  Allan Sandfeld Jensen <kde@carewolf.com>
 
-        * html/htmlblockimpl.cpp: When a NS-layer gets DIV layer children. The NS \
layer should let the DIV layer control position. +        * html/htmltokenizer.cpp: \
Implement SGML attribute-value white-space parsing rules. +
+2005-03-22  Allan Sandfeld Jensen <kde@carewolf.com>
+
+        * html/htmlblockimpl.cpp: When a NS-layer gets DIV layer children. The NS \
layer should +        let the DIV layer control position.
 
 2005-03-22  Allan Sandfeld Jensen <kde@carewolf.com>

--- kdelibs/khtml/html/htmltokenizer.cpp  #1.300:1.301
@@ -988,4 +988,13 @@ void HTMLTokenizer::parseTag(TokenizerSt
                         break;
                     }
+                    else if (curchar == '\r') {
+                        ++src;
+                        continue;
+                    }
+                    else if (curchar == '\t' || curchar == '\n') {
+                        *dest++ = ' ';
+                        ++src;
+                        continue;
+                    }
                 }
                 *dest++ = *src;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic