Fix for 3714434, user stylesheet is always parsed in strict mode, when it should...
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jul 2004 23:52:56 +0000 (23:52 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Jul 2004 23:52:56 +0000 (23:52 +0000)
        Reviewed by john

        * khtml/css/cssstyleselector.cpp:
        (khtml::CSSStyleSelector::CSSStyleSelector):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7081 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/css/cssstyleselector.cpp

index c0c0360..6d90cd4 100644 (file)
@@ -1,3 +1,12 @@
+2004-07-20  David Hyatt  <hyatt@apple.com>
+
+       Fix for 3714434, user stylesheet is always parsed in strict mode, when it should honor the document's setting.
+       
+        Reviewed by john
+
+        * khtml/css/cssstyleselector.cpp:
+        (khtml::CSSStyleSelector::CSSStyleSelector):
+
 2004-07-20  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by Richard
index 16f8d23..14a8825 100644 (file)
@@ -141,9 +141,9 @@ CSSStyleSelector::CSSStyleSelector( DocumentImpl* doc, QString userStyleSheet, S
     paintDeviceMetrics = doc->paintDeviceMetrics();
 
     // FIXME: This sucks! The user sheet is reparsed every time!
-    if ( !userStyleSheet.isEmpty() ) {
+    if (!userStyleSheet.isEmpty()) {
         m_userSheet = new DOM::CSSStyleSheetImpl(doc);
-        m_userSheet->parseString( DOMString( userStyleSheet ) );
+        m_userSheet->parseString(DOMString(userStyleSheet), strictParsing);
 
         m_userStyle = new CSSRuleSet();
         m_userStyle->addRulesFromSheet( m_userSheet, m_medium );