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

List:       kde-commits
Subject:    kdelibs/khtml/html
From:       David Faure <faure () kde ! org>
Date:       2005-01-24 21:04:42
Message-ID: 20050124210442.2A9C41BA33 () office ! kde ! org
[Download RAW message or body]

CVS commit by faure: 

Add application/x-javascript to the accepted types (patch by Apple long ago...)


  M +3 -1      htmltokenizer.cpp   1.295


--- kdelibs/khtml/html/htmltokenizer.cpp  #1.294:1.295
@@ -1079,4 +1079,5 @@ void HTMLTokenizer::parseTag(TokenizerSt
                         Mozilla 1.5 doesn't accept the text/javascript1.x formats, \
                but WinIE 6 does.
                         Mozilla 1.5 doesn't accept text/jscript, text/ecmascript, \
and text/livescript, but WinIE 6 does. +                        Mozilla 1.5 accepts \
                application/x-javascript, WinIE 6 doesn't.
                         Mozilla 1.5 allows leading and trailing whitespace, but \
                WinIE 6 doesn't.
                         Mozilla 1.5 and WinIE 6 both accept the empty string, but \
neither accept a whitespace-only string. @@ -1093,5 +1094,6 @@ void \
HTMLTokenizer::parseTag(TokenizerSt  type.compare("text/jscript") != 0 &&
                         type.compare("text/ecmascript") != 0 &&
-                        type.compare("text/livescript") )
+                        type.compare("text/livescript") != 0 &&
+                        type.compare("application/x-javascript") != 0 )
                         javascript = false;
                 } else if( a ) {


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

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