You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this patch we're adding support to process the BUTTON element. This requires
adding some additional semantic rules to handle situations where a BUTTON element
is already in scope.
$this->assertTrue( $p->next_tag( 'BUTTON' ), 'Could not find expected first button.' );
76
+
$this->assertTrue( $p->get_attribute( 'one' ), 'Failed to match expected attribute on first button.' );
77
+
$this->assertSame( array( 'HTML', 'BODY', 'DIV', 'P', 'BUTTON' ), $p->get_breadcrumbs(), 'Failed to produce expected DOM nesting for first button.' );
78
+
79
+
$this->assertTrue( $p->next_tag( 'BUTTON' ), 'Could not find expected second button.' );
80
+
$this->assertTrue( $p->get_attribute( 'two' ), 'Failed to match expected attribute on second button.' );
81
+
$this->assertSame( array( 'HTML', 'BODY', 'DIV', 'P', 'BUTTON' ), $p->get_breadcrumbs(), 'Failed to produce expected DOM nesting for second button.' );
82
+
83
+
$this->assertTrue( $p->next_tag( 'BUTTON' ), 'Could not find expected third button.' );
84
+
$this->assertTrue( $p->get_attribute( 'three' ), 'Failed to match expected attribute on third button.' );
85
+
$this->assertSame( array( 'HTML', 'BODY', 'BUTTON' ), $p->get_breadcrumbs(), 'Failed to produce expected DOM nesting for third button.' );
86
+
}
87
+
88
+
/**
89
+
* Verifies what when inserting a BUTTON element, when a BUTTON is already in scope,
90
+
* that the open button is closed with all other elements inside of it, even if the
91
+
* BUTTON in scope is not a direct parent of the new BUTTON element.
0 commit comments