Lines Matching +full:- +full:b
14 $form->addButton('foo', 'Hello <b>World</b>')->val('bam')->attr('type', 'submit');
16 $html = $form->toHTML();
17 $pq = (new Document())->html($html);
19 $input = $pq->find('button[name=foo]');
20 $this->assertTrue($input->count() == 1);
21 $this->assertEquals('bam', $input->attr('value'));
22 $this->assertEquals('submit', $input->attr('type'));
23 $this->assertEquals('Hello <b>World</b>', $input->text()); // tags were escaped
25 $b = $input->find('b'); // no tags found
26 $this->assertTrue($b->count() == 0);
32 $form->addButtonHTML('foo', 'Hello <b>World</b>')->val('bam')->attr('type', 'submit');
34 $html = $form->toHTML();
35 $pq = (new Document())->html($html);
37 $input = $pq->find('button[name=foo]');
38 $this->assertTrue($input->count() == 1);
39 $this->assertEquals('bam', $input->attr('value'));
40 $this->assertEquals('submit', $input->attr('type'));
41 $this->assertEquals('Hello World', $input->text()); // tags are stripped here
43 $b = $input->find('b'); // tags found
44 $this->assertTrue($b->count() == 1);