Changeset 33202

Show
Ignore:
Timestamp:
05/10/09 04:05:02 (4 years ago)
Author:
os0x
Message:
  • WebKitでの誤爆回避のため、XHTMLかどうかの判定方法を修正
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/opera-userjs/oAutoPagerize.js

    r31343 r33202  
    33// @namespace      http://ss-o.net/ 
    44// @description    loading next page and inserting into current page. oAutoPagerize supports for Opera 9.5+, GreaseKit(Safari/WebKit) and Greasemetal(Google Chrome). 
    5 // @version        1.2.2.1 
     5// @version        1.2.3 
    66// @include        http://* 
    77// @include        https://* 
     
    5656        var URL = 'http://d.hatena.ne.jp/os0x/searchdiary?word=%2a%5boAutoPagerize%5d'; 
    5757        var UPDATE_URL = window.opera ? 'http://ss-o.net/userjs/0AutoPagerize.SITEINFO.js' : 'http://ss-o.net/userjs/0AutoPagerize.SITEINFO.user.js'; 
    58         var VERSION = '1.2.2.1'; 
     58        var VERSION = '1.2.3'; 
    5959        var AUTO_START = Set.AUTO_START !== false; 
    6060        //var CACHE_EXPIRE = 24 * 60 * 60 * 1000; 
     
    782782                        var resolver = doc.createNSResolver(node.documentElement || node); 
    783783                        // Use |node.lookupNamespaceURI('')| for Opera 9.5 
     784                        var isXHTML = document.documentElement.tagName !== 'HTML'; 
    784785                        var defaultNS = node.lookupNamespaceURI(window.opera ? '' : null); 
    785                         if (defaultNS) { 
     786                        if (isXHTML) { 
    786787                                var defaultPrefix = '__default__'; 
    787788                                xpath = addDefaultPrefix(xpath, defaultPrefix);