????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.217.105 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/tidy/tests/ |
Upload File : |
--TEST--
Accessing root, body, html, and head nodes..
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
$a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000></BODY></HTML>", array('newline' => 'LF'));
var_dump($a->root());
var_dump($a->body());
var_dump($a->html());
var_dump($a->head());
?>
--EXPECT--
object(tidyNode)#2 (8) {
["value"]=>
string(94) "<html>
<head>
<title></title>
</head>
<body bgcolor="#FFFFFF" alink="#000000">
</body>
</html>"
["name"]=>
string(0) ""
["type"]=>
int(0)
["line"]=>
int(1)
["column"]=>
int(1)
["proprietary"]=>
bool(false)
["attribute"]=>
NULL
["child"]=>
array(1) {
[0]=>
&object(tidyNode)#3 (9) {
["value"]=>
string(94) "<html>
<head>
<title></title>
</head>
<body bgcolor="#FFFFFF" alink="#000000">
</body>
</html>"
["name"]=>
string(4) "html"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(1)
["proprietary"]=>
bool(false)
["id"]=>
int(48)
["attribute"]=>
NULL
["child"]=>
array(2) {
[0]=>
&object(tidyNode)#4 (9) {
["value"]=>
string(31) "<head>
<title></title>
</head>
"
["name"]=>
string(4) "head"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(7)
["proprietary"]=>
bool(false)
["id"]=>
int(46)
["attribute"]=>
NULL
["child"]=>
array(1) {
[0]=>
&object(tidyNode)#5 (9) {
["value"]=>
string(16) "<title></title>
"
["name"]=>
string(5) "title"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(57)
["proprietary"]=>
bool(false)
["id"]=>
int(111)
["attribute"]=>
NULL
["child"]=>
NULL
}
}
}
[1]=>
&object(tidyNode)#6 (9) {
["value"]=>
string(49) "<body bgcolor="#FFFFFF" alink="#000000">
</body>
"
["name"]=>
string(4) "body"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(7)
["proprietary"]=>
bool(false)
["id"]=>
int(16)
["attribute"]=>
array(2) {
["bgcolor"]=>
string(7) "#FFFFFF"
["alink"]=>
string(7) "#000000"
}
["child"]=>
NULL
}
}
}
}
}
object(tidyNode)#2 (9) {
["value"]=>
string(49) "<body bgcolor="#FFFFFF" alink="#000000">
</body>
"
["name"]=>
string(4) "body"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(7)
["proprietary"]=>
bool(false)
["id"]=>
int(16)
["attribute"]=>
array(2) {
["bgcolor"]=>
string(7) "#FFFFFF"
["alink"]=>
string(7) "#000000"
}
["child"]=>
NULL
}
object(tidyNode)#2 (9) {
["value"]=>
string(94) "<html>
<head>
<title></title>
</head>
<body bgcolor="#FFFFFF" alink="#000000">
</body>
</html>"
["name"]=>
string(4) "html"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(1)
["proprietary"]=>
bool(false)
["id"]=>
int(48)
["attribute"]=>
NULL
["child"]=>
array(2) {
[0]=>
&object(tidyNode)#3 (9) {
["value"]=>
string(31) "<head>
<title></title>
</head>
"
["name"]=>
string(4) "head"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(7)
["proprietary"]=>
bool(false)
["id"]=>
int(46)
["attribute"]=>
NULL
["child"]=>
array(1) {
[0]=>
&object(tidyNode)#6 (9) {
["value"]=>
string(16) "<title></title>
"
["name"]=>
string(5) "title"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(57)
["proprietary"]=>
bool(false)
["id"]=>
int(111)
["attribute"]=>
NULL
["child"]=>
NULL
}
}
}
[1]=>
&object(tidyNode)#4 (9) {
["value"]=>
string(49) "<body bgcolor="#FFFFFF" alink="#000000">
</body>
"
["name"]=>
string(4) "body"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(7)
["proprietary"]=>
bool(false)
["id"]=>
int(16)
["attribute"]=>
array(2) {
["bgcolor"]=>
string(7) "#FFFFFF"
["alink"]=>
string(7) "#000000"
}
["child"]=>
NULL
}
}
}
object(tidyNode)#2 (9) {
["value"]=>
string(31) "<head>
<title></title>
</head>
"
["name"]=>
string(4) "head"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(7)
["proprietary"]=>
bool(false)
["id"]=>
int(46)
["attribute"]=>
NULL
["child"]=>
array(1) {
[0]=>
&object(tidyNode)#4 (9) {
["value"]=>
string(16) "<title></title>
"
["name"]=>
string(5) "title"
["type"]=>
int(5)
["line"]=>
int(1)
["column"]=>
int(57)
["proprietary"]=>
bool(false)
["id"]=>
int(111)
["attribute"]=>
NULL
["child"]=>
NULL
}
}
}