File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,15 +31,16 @@ void main() {
3131 {},
3232 react.button ({
3333 'aria-label' : 'Close' ,
34- 'aria-describedby' : 'description-close' ,
34+ // Use a special character to verify that it is escaped correctly in hasDescription.
35+ 'aria-describedby' : 'r:description-close' ,
3536 }, 'X' ),
3637 react.button ({
3738 'aria-label' : 'Has Multiple Descriptions' ,
38- 'aria-describedby' : 'description-close some-other-description' ,
39+ 'aria-describedby' : 'r: description-close some-other-description' ,
3940 }, 'X' ),
4041 react.button ({}, 'Delete' ),
4142 react.button ({'aria-describedby' : 'not-found' }, 'Has id not found' ),
42- react.div ({'id' : 'description-close' }, 'Closing will discard any changes' ),
43+ react.div ({'id' : 'r: description-close' }, 'Closing will discard any changes' ),
4344 react.div ({'id' : 'some-other-description' }, 'Some other description' ),
4445 ));
4546 });
You can’t perform that action at this time.
0 commit comments