Changeset 2040

Show
Ignore:
Timestamp:
11/27/07 01:51:39 (5 years ago)
Author:
cho45
Message:

lang/javascript/userscripts/jautopagerize.user.js:

コメントの些細な変更

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/jautopagerize.user.js

    r2039 r2040  
    488488                // Firefox doesn't have createHTMLDocument 
    489489                if (!document.implementation.createHTMLDocument) { 
    490  
     490                        // Maybe this is the best way to create HTMLDocument, but not worked in any browser... 
     491                        // var html4dt = document.implementation.createDocumentType("HTML", "-//W3C//DTD HTML 4.01//EN", "http://www.w3.org/TR/html4/strict.dtd"); 
     492                        // var d =  document.implementation.createDocument("", "HTML", html4dt); 
     493                        // return d; 
     494 
     495                        // In Firefox 
    491496                        // Try to create HTMLDocument from XSLT with <xsl:output method='html'/> 
    492497                        if (typeof DOMParser != "undefined" && 
    493498                            typeof XSLTProcessor != "undefined") { 
    494 //                              var html4dt = document.implementation.createDocumentType("HTML", "-//W3C//DTD HTML 4.01//EN", "http://www.w3.org/TR/html4/strict.dtd"); 
    495 //                              var d =  document.implementation.createDocument("", "HTML", html4dt); 
    496 //                              return d; 
    497499                                return null; // avoid magical XSLTProcessor bug. so use div for parsing 
    498500                                var x = new XSLTProcessor(); 
     
    535537        } 
    536538 
    537         // extend version of $X 
    538         // $X(exp); 
    539         // $X(exp, context); 
    540         // $X(exp, type); 
    541         // $X(exp, context, type); 
     539        // modified $X for relative path extension. 
    542540        function $X (exp, context, type /* want type */) { 
    543541                if (arguments.callee.forceRelative || navigator.userAgent.match("Safari/523.12")) {