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

List:       kde-commits
Subject:    KDE/kdelibs/khtml/html
From:       Jaime Torres Amate <jtamate () gmail ! com>
Date:       2010-01-08 15:25:32
Message-ID: 1262964332.342581.9639.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1071706 by jtamate:

BUG: 33902
follow html5 unquoted attribute sintax
http://reviewboard.kde.org/r/1849/

 M  +4 -1      htmltokenizer.cpp  


--- trunk/KDE/kdelibs/khtml/html/htmltokenizer.cpp #1071705:1071706
@@ -1399,7 +1399,10 @@
                     }
                     // no quotes. Every space means end of value
                     // '/' does not delimit in IE!
-                    if ( curchar <= ' ' || curchar == '>' )
+                    // HTML5: must not contain any literal space characters, any \
U+0022 QUOTATION MARK (") characters, +                    // U+0027 APOSTROPHE (') \
characters, U+003D EQUALS SIGN (=) characters, U+003C LESS-THAN SIGN (<) characters, \
+                    // U+003E GREATER-THAN SIGN (>) characters, or U+0060 GRAVE \
ACCENT (`) characters, and must not be the empty string. +                    if ( \
curchar <= ' ' || curchar == '>' || curchar == '\'' || curchar == '"' || curchar == \
'<' || curchar == '=' || curchar == '`' )  {
                         DOMString v(buffer+1, dest-buffer-1);
                         currToken.addAttribute(parser->docPtr(), buffer, attrName, \
v);


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

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