Vue-specific attributes are invalid html
Closed this issue · 1 comments
sebbayer commented
The attributes true-value and false-value on <input> fields are vue-specific according to the documentation:
https://vuejs.org/guide/essentials/forms#checkbox-1
Here's a playground link
However, the markup rendered is invalid because of those attributes.
Go to https://validator.w3.org/nu/#textarea
And validate this string
<!DOCTYPE html>
<html lang="">
<head>
<title>Test</title>
</head>
<body>
<input type="checkbox" true-value="yes" false-value="no">
</body>
</html>
I dont't know if more internal attributes besides true-value and false-value exist.
Could this be fixed by using data attributes instead?
sebbayer commented
Sorry, I meant to open this in the vue 3 repo. Closing this issue in favor of vuejs/core#13010