Commit 29eaabc
committed
test(select): relax test for IE8 bug
There is a bug in IE8 (http://support.microsoft.com/kb/829907 and
http://yuilibrary.com/forum-archive/forum/viewtopic.php@p=14826.html):
when you clone an `<option>` element the selected attribute on the options
can become invalid.
This is not relevant to the proper behaviour of the `select` directive
since it uses `prop` not `attr` to store the selected status of each
option.
This test is only interested in there being at least on option with
the `selected` attribute, for conformance to accessibility guidelines.
So we can safely relax the test to check this rather than concerning
ourselves with which option actually has this attribute.
Fixes 79538af
Closes angular#84651 parent 2a60810 commit 29eaabc
1 file changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
997 | 997 | | |
998 | 998 | | |
999 | 999 | | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1000 | 1009 | | |
1001 | 1010 | | |
1002 | 1011 | | |
| |||
1006 | 1015 | | |
1007 | 1016 | | |
1008 | 1017 | | |
1009 | | - | |
| 1018 | + | |
1010 | 1019 | | |
1011 | 1020 | | |
1012 | 1021 | | |
1013 | 1022 | | |
1014 | 1023 | | |
1015 | 1024 | | |
1016 | | - | |
| 1025 | + | |
1017 | 1026 | | |
1018 | 1027 | | |
1019 | 1028 | | |
1020 | 1029 | | |
1021 | 1030 | | |
1022 | 1031 | | |
1023 | | - | |
| 1032 | + | |
1024 | 1033 | | |
1025 | 1034 | | |
1026 | 1035 | | |
1027 | 1036 | | |
1028 | 1037 | | |
1029 | | - | |
| 1038 | + | |
1030 | 1039 | | |
1031 | 1040 | | |
1032 | 1041 | | |
1033 | 1042 | | |
1034 | 1043 | | |
1035 | 1044 | | |
1036 | | - | |
| 1045 | + | |
1037 | 1046 | | |
1038 | 1047 | | |
1039 | 1048 | | |
| |||
0 commit comments