]>
iEval git - html-element-library.git/blob - t/sibdex.t
4 my $t1 = HTML
::Element
->new_from_lol(
7 [ 'title', 'I like stuff!' ]],
8 ['body', {id
=> 'corpus'}, {'lang', 'en-JP'},
10 ['p', 'um, p < 4!', {'class' => 'par123'}],
11 ['div', {foo
=> 'bar'}, '123'], # at 0.1.2
12 ['div', {jack
=> 'olantern'}, '456']]]); # at 0.1.2
14 my $p = $t1->look_down('_tag' => 'body')->look_down(_tag
=> 'p');
15 is
$p->sibdex, 1, 'p tag has 1 as its index';
This page took 0.0523749999999999 seconds and 4 git commands to generate.