Changeset 32393 for lang/php

Show
Ignore:
Timestamp:
04/14/09 18:48:33 (4 years ago)
Author:
MugeSo
Message:

selectorToXPathをHTML_CSS_Selector2XPathとして独立させました。
以後、HTML_CSS_Mobileはopenpear/HTML_CSS_Selector2XPathに依存します。

Location:
lang/php/HTML_CSS_Mobile/trunk
Files:
2 removed
2 modified

Legend:

Unmodified
Added
Removed
  • lang/php/HTML_CSS_Mobile/trunk/HTML/CSS/Mobile.php

    r32239 r32393  
    2929 */ 
    3030 
    31 require_once 'lib/selectorToXPath.php'; 
     31require_once 'HTML/CSS/Selector2XPath.php'; 
    3232require_once 'HTML/CSS.php'; 
    3333 
     
    178178                foreach ($css as $selector => $style) 
    179179                { 
    180                         // 疑似要素は退避。@ルールはスルー(selectorToXPath的にバグでやすい) 
     180                        // 疑似要素は退避。@ルールはスルー(Selector2XPath的にバグでやすい) 
    181181                        if (strpos($selector, '@') !== false) continue; 
    182182                        if (strpos($selector, ':') !== false) 
     
    186186                        } 
    187187 
    188                         $xpath = selectorToXPath::toXPath($selector); 
     188                        $xpath = HTML_CSS_Selector2XPath::toXPath($selector); 
    189189                        $elements = $this->dom_xpath->query($xpath); 
    190190 
  • lang/php/HTML_CSS_Mobile/trunk/sample/sample.php

    r32380 r32393  
    11<?php 
    22$base_dir = dirname(__FILE__) . '/'; 
    3 require_once realpath($base_dir .'../HTML/CSS/Mobile.php'); 
     3require_once realpath($base_dir .'../HTML/CSS/Mobile.php'); // 開発用 
     4//require_once 'HTML/CSS/Mobile.php'; 
    45 
    56$document = file_get_contents(realpath($base_dir.'sample.html'));