@@ -381,10 +381,14 @@ public function data_provider_sample_documents(): array {
381
381
<img src="about:blank">
382
382
A missing role attribute.
383
383
</div>
384
+ <div>
385
+ <img src="about:blank">
386
+ No attribute on the DIV at all. This would be quite unusual.
387
+ </div>
384
388
</body>
385
389
</html>
386
390
' ,
387
- 'open_tags ' => array ( 'HTML ' , 'HEAD ' , 'BODY ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' ),
391
+ 'open_tags ' => array ( 'HTML ' , 'HEAD ' , 'BODY ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , 'DIV ' , 'IMG ' , ' DIV ' , ' IMG ' ),
388
392
'xpath_breadcrumbs ' => array (
389
393
'/HTML ' => array ( 'HTML ' ),
390
394
'/HTML/HEAD ' => array ( 'HTML ' , 'HEAD ' ),
@@ -403,6 +407,8 @@ public function data_provider_sample_documents(): array {
403
407
'/HTML/BODY/DIV[@class= \'\']/*[1][self::IMG] ' => array ( 'HTML ' , 'BODY ' , 'DIV ' , 'IMG ' ),
404
408
'/HTML/BODY/DIV[@role= \'\'] ' => array ( 'HTML ' , 'BODY ' , 'DIV ' ),
405
409
'/HTML/BODY/DIV[@role= \'\']/*[1][self::IMG] ' => array ( 'HTML ' , 'BODY ' , 'DIV ' , 'IMG ' ),
410
+ '/HTML/BODY/DIV ' => array ( 'HTML ' , 'BODY ' , 'DIV ' ),
411
+ '/HTML/BODY/DIV/*[1][self::IMG] ' => array ( 'HTML ' , 'BODY ' , 'DIV ' , 'IMG ' ),
406
412
),
407
413
),
408
414
);
0 commit comments