Warning received in VS2012:
Validation (HTML5): If this attribute value is enclosed in quotation marks, the quotation marks must match.
When splitting data-bind parameter values onto more than one line, seems to be only when one of them contains a certain condition e.g. http://jsfiddle.net/rniemeyer/gZC5k/ – splitting line 37 onto two lines…
from: <button data-bind='click: save, enable: contacts().length > 0'>Save to JSON</button>
to:
<button data-bind='click: save,
enable: contacts().length > 0'>Save to JSON</button>
Any idea why this is triggered?
If I switch to HTML4 validation I get a warning about data-bind, same as here: Knockout.js data-bind attribute causes html validation warning
I either have some really long lines of HTML or this warning. Anything else I can do to work around this?
What about if you put the whole attribute on one line?
That’s a bit of an improvement, though not much!