File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11
22# 4.0.0-preview3 (Planned)
33
4+ ## Added / Modified
5+
6+ ## Fixes
7+ - Get-SeElement -Filter attributes check fix.
8+
49
510
611# 4.0.0-preview2 (Prerelease)
Original file line number Diff line number Diff line change @@ -98,10 +98,9 @@ function Get-SeElement {
9898 $AdditionalAttributes | ForEach-Object {
9999 if (! $MyAttributes.Contains ($_ )) { $MyAttributes.Add ($_ ) }
100100 }
101- $Attributes = [String []]$MyAttributes
102101 }
103102
104- if ($Attributes ) {
103+ if ($MyAttributes .Count -gt 0 ) {
105104
106105 if ($GetAllAttributes ) {
107106 Foreach ($Item in $Output ) {
@@ -119,7 +118,7 @@ function Get-SeElement {
119118 foreach ($Item in $Output ) {
120119 $AttArray = [System.Collections.Generic.Dictionary [String , String ]]::new()
121120
122- foreach ($att in $Attributes ) {
121+ foreach ($att in $MyAttributes ) {
123122 $attValue = $Item.GetAttribute ($att )
124123 if ($attValue -ne " " ) {
125124 $AttArray.Add ($att , $Item.GetAttribute ($att ))
You can’t perform that action at this time.
0 commit comments