Commits

Alexander Artemenko committed d572ac8

Create a Property with parent to make _isValidating work propertly and remove unwanted WARNING if validation was turned off for parent.

  • Participants
  • Parent commits 6254f2b

Comments (0)

Files changed (1)

src/cssutils/css/cssstyledeclaration.py

             # empty string or None effectively removed property
             return self.removeProperty(name)
         else:
-            newp = Property(name, value, priority)
+            newp = Property(name, value, priority, parent=self)
 
         if newp.wellformed:
             if replace: