After upgrading from v1.11.7 -> v1.12.6, .GetAttribute("value") fails to return the value if it contains "{" (my use case here is that I'm displaying json 'log' data in a text area)
Simplified (not real json, no binding, etc):
<textarea value="@("{ \"abc\" }")"></textarea>
The test:
Assert.Equal(
expected: "{ \"abc\" }",
actual: cut.Find("textarea").GetAttribute("value")
);
In v1.12.6 and later the test fails with value = "{\n "
In all versions, printing the output in the immediate: cut.Find("textarea") outputs:
OuterHtml: "<textarea id=\"myText\" value=\"{ \" abc\"=\"\" }\"=\"\"></textarea>"