-
-
Notifications
You must be signed in to change notification settings - Fork 117
HTML attribute 和 DOM property #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
2年了,终于填坑了 |
感谢. |
始终会与 attribute 保持一致。 |
@xusanduo08 可能我说的不是很清楚。视图(HTML)总是和 attribute 保持一致,这里的视图指的是 HTML,而非用户看到的渲染结果。 |
@justjavac 明白了,感谢! |
@xusanduo08 关于 value 的规范: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-fe-value 规范中使用了 control:控件。
表单控件的值是它的内部状态。可能与用户的当前输入不同。 规范中还举了 2 个例子:
|
文章:HTML attribute 和 DOM property
The text was updated successfully, but these errors were encountered: