Commit eac9caa
committed
Fix attribute order in get_attribute_names_with_prefix()
- Follow same order as get_updated_html(): existing attributes first, then new ones
- Process all lexical_updates in HTML order (sorted by start position)
- Properly handle removed attributes, new attributes, and modified existing ones
- Use array_values(array_unique()) to avoid duplicates
- Passes 3 failing unit tests for order consistency
- Maintains PHPCS compliance
Fixes #645671 parent dbd9f91 commit eac9caa
1 file changed
+2
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2853 | 2853 | | |
2854 | 2854 | | |
2855 | 2855 | | |
2856 | | - | |
| 2856 | + | |
2857 | 2857 | | |
2858 | 2858 | | |
2859 | | - | |
2860 | | - | |
2861 | | - | |
2862 | | - | |
2863 | | - | |
2864 | | - | |
2865 | | - | |
2866 | | - | |
2867 | | - | |
2868 | | - | |
2869 | | - | |
2870 | | - | |
2871 | | - | |
2872 | | - | |
| 2859 | + | |
2873 | 2860 | | |
2874 | 2861 | | |
2875 | 2862 | | |
| |||
0 commit comments