+2005-01-11 David Hyatt <hyatt@apple.com>
+
+ Fix for 3882299, missing content on gibson.com. Change our handling of " and ' in certain states of the parser to match
+ other browsers.
+
+ Reviewed by Maciej
+
+ * khtml/html/htmltokenizer.cpp:
+ (khtml::HTMLTokenizer::parseTag):
+
2005-01-11 Chris Blumenberg <cblu@apple.com>
Fixed: <rdar://problem/3930733> Mail prints second page of email blank
ushort curchar;
while(!src.isEmpty()) {
curchar = *src;
- if(curchar > ' ') {
+ // In this mode just ignore any quotes we encounter and treat them like spaces.
+ if (curchar > ' ' && curchar != '\'' && curchar != '"') {
if (curchar == '<' || curchar == '>')
tag = SearchEnd;
- else if(atespace && (curchar == '\'' || curchar == '"'))
- {
- tag = SearchValue;
- *dest++ = 0;
- attrName = QString::null;
- attrNamePresent = false;
- }
else
tag = AttributeName;
bool atespace = false;
while(!src.isEmpty()) {
curchar = src->unicode();
- if(curchar > ' ') {
+ // In this mode just ignore any quotes we encounter and treat them like spaces.
+ if (curchar > ' ' && curchar != '\'' && curchar != '"') {
if(curchar == '=') {
#ifdef TOKEN_DEBUG
kdDebug(6036) << "found equal" << endl;
tag = SearchValue;
++src;
}
- else if(atespace && (curchar == '\'' || curchar == '"'))
- {
- tag = SearchValue;
- *dest++ = 0;
- attrName = QString::null;
- attrNamePresent = false;
- }
else {
currToken.addAttribute(parser->docPtr()->document(), buffer, attrName, emptyAtom);
dest = buffer;