--TEST-- Accessing root, body, html, and head nodes.. --SKIPIF-- --FILE-- ", 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) " " ["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) " " ["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) " " ["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) " " ["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) " " ["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) " " ["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) " " ["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) " " ["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) " " ["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) " " ["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) " " ["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) " " ["name"]=> string(5) "title" ["type"]=> int(5) ["line"]=> int(1) ["column"]=> int(57) ["proprietary"]=> bool(false) ["id"]=> int(111) ["attribute"]=> NULL ["child"]=> NULL } } }