You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output from HAP includes <div class=test cls>Text</div>. This should be <div class="test cls">Text</div>. The browser will interpret the current output as <div class="test" cls>Text</div> - i.e. the class is only "test", then there's a new cls attribute with no value.
This is an issue with minified input. The quotes around attributes are stripped if it is valid to do so. When HAP loads a minified attribute, it attempts to preserve the quotation style. However, if the value is then changed, it does not check to make sure that the quotation style is still legal.
The example uses addClass but it should apply to anything that modifies attribute values. I believe other characters besides just space will require quotations. I don't know the exact list but probably any non-word character.
4. Any further technical details
HAP version:
Occurs in HAP 1.11.63 and 1.11.64
The text was updated successfully, but these errors were encountered:
1. Description
Attributes with spaces are not quoted if the attribute was loaded without quotes
3. Fiddle or Project
Fiddle: https://dotnetfiddle.net/qj0Iav
The output from HAP includes
<div class=test cls>Text</div>
. This should be<div class="test cls">Text</div>
. The browser will interpret the current output as<div class="test" cls>Text</div>
- i.e. the class is only "test", then there's a new cls attribute with no value.This is an issue with minified input. The quotes around attributes are stripped if it is valid to do so. When HAP loads a minified attribute, it attempts to preserve the quotation style. However, if the value is then changed, it does not check to make sure that the quotation style is still legal.
The example uses addClass but it should apply to anything that modifies attribute values. I believe other characters besides just space will require quotations. I don't know the exact list but probably any non-word character.
4. Any further technical details
Occurs in HAP 1.11.63 and 1.11.64
The text was updated successfully, but these errors were encountered: