Diff for /Amaya/amaya/styleparser.c between versions 1.344 and 1.345

version 1.344, 2006/01/23 16:27:44 version 1.345, 2006/01/28 14:04:42
Line 5289  static void  ParseCSSRule (Element eleme Line 5289  static void  ParseCSSRule (Element eleme
                :after */                 :after */
             {              {
               end = cssRule;                end = cssRule;
               end = SkipProperty (end, TRUE);                end = SkipProperty (end, FALSE);
               CSSParseError ("content is allowed only for pseudo-elements",                CSSParseError ("content is allowed only for pseudo-elements",
                              cssRule, end);                               cssRule, end);
               i = NB_CSSSTYLEATTRIBUTE;                i = NB_CSSSTYLEATTRIBUTE;
Line 6304  static char *ParseGenericSelector (char Line 6304  static char *ParseGenericSelector (char
                       if (att != 0)                        if (att != 0)
                         ctxt->schema = attrType.AttrSSchema;                          ctxt->schema = attrType.AttrSSchema;
                     }                      }
                   if (att == DummyAttribute && !strcmp (schemaName, "HTML"))  
                     /* it's the "type" attribute for an "input" element.  
                        In the tree it is represented by the element type, not  
                        by an attribute */  
                     att = 0;  
                   attrType.AttrSSchema = ctxt->schema;                    attrType.AttrSSchema = ctxt->schema;
                   attrType.AttrTypeNum = att;                    attrType.AttrTypeNum = att;
                   if (i == 0 && att == 0 && ctxt->schema == NULL)                    if (i == 0 && att == 0 && ctxt->schema == NULL)
Line 6343  static char *ParseGenericSelector (char Line 6338  static char *ParseGenericSelector (char
                       DoApply = FALSE;                              DoApply = FALSE;      
                     }                      }
                   else                    else
                     ctxt->attrType[j] = att;                      {
                         ctxt->attrType[j] = att;
                         if (att == DummyAttribute && !strcmp (schemaName,"HTML"))
                           /* it's the "type" attribute for an "input" element.
                              In the tree, it is represented by the element type,
                              not by an attribute */
                           {
                             ctxt->attrType[j] = 0;
                             if (attrvals[j] && attrmatch[i] == Txtmatch)
                               /* a value is specified for attribute type. This
                                  value provides the Thot element type */
                               {
                                 MapXMLAttributeValue (xmlType, attrvals[j],
                                                       &attrType, &kind);
                                 /* attrType contains the element type */
                                 if (i == 0)
                                   ctxt->type = kind;
                                 ctxt->name[i] = kind;
                               } 
                           }
                       }
                 }                  }
               if (ctxt->attrType[j])                if (ctxt->attrType[j])
                 {                  {

Removed from v.1.344  
changed lines
  Added in v.1.345


Webmaster