Skip to content

Commit d4a570a

Browse files
authored
Update State.php
1 parent 9a702e0 commit d4a570a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Html/State.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function Reset($defaultFont = null)
6060
$this->background = null;
6161
$this->hcolor = null;
6262
$this->font = isset($defaultFont) ? $defaultFont : null;
63+
$this->href = null;
6364
}
6465

6566
public function PrintStyle()
@@ -122,6 +123,9 @@ public function equals($state)
122123
// Compare fonts
123124
if ($this->font != $state->font) return false;
124125

126+
// Compare urls
127+
if ($this->href != $state->href) return false;
128+
125129
return true;
126130
}
127131

@@ -304,4 +308,4 @@ public function setFont($font): self
304308

305309
return $this;
306310
}
307-
}
311+
}

0 commit comments

Comments
 (0)