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
{{ message }}
Repository navigation
Ensure the value attribute for HTMLInputElement matches the spec #9455
A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the issI-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.I-wrongAn incorrect behaviour is observed.
#9407 uncovered the fact that our current implementation does not match the behaviour outlined by the spec. It also discovered that whenever the value attribute is removed by the RemoveAttribute method on an HTMLElement, the HTMLInputElement is not notified of the changes, since there are actually two containers for the value attribute - one is the attrs field in the Element struct, and the other textinput field in the HTMLInputElement struct. This may or may not be intentional, as the spec defines different modes that the value attribute can be in, yet currently our implementation does not implement the concept of these modes.
Ok, be mindful that I expect this to be more difficult than the E-Easy issues that you've handled before. If you're stuck and require clarifications, please don't hesistate to ping us at #servo on irc.mozilla.org!
I'll run the rest of the wpt tests later, but I'm not sure if this is a good approach or what to do about RemoveAttribute, the value sanitization algorithms, and syncing attrs.value and textinput in HTMLInputElement.
A-content/domInteracting with the DOM from web contentC-assignedThere is someone working on resolving the issueE-more-complexVariable effort required; may require a mentor. Recommended solution is clearly described in the issI-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.I-wrongAn incorrect behaviour is observed.
Activity
g-k commentedon Jan 30, 2016
I can give this a shot.
KiChjang commentedon Jan 30, 2016
Ok, be mindful that I expect this to be more difficult than the E-Easy issues that you've handled before. If you're stuck and require clarifications, please don't hesistate to ping us at #servo on irc.mozilla.org!
g-k commentedon Feb 3, 2016
OK, I pushed a branch that sets and gets
valueon Element and gets the last radio node list test passing: https://github.com/servo/servo/compare/master...g-k:html-input-value?expand=1I'll run the rest of the wpt tests later, but I'm not sure if this is a good approach or what to do about
RemoveAttribute, the value sanitization algorithms, and syncingattrs.valueandtextinputin HTMLInputElement.KiChjang commentedon Feb 3, 2016
@g-k I left some comments on your commit, nice work so far!
WIP implement value input modes
WIP implement value input modes
Get input value IDL attribute matching spec
Get input value IDL attribute matching spec
Get input value IDL attribute matching spec
Get input value IDL attribute matching spec
Get input value IDL attribute matching spec
Get input value IDL attribute matching spec
Get input value IDL attribute matching spec
Auto merge of #9514 - g-k:html-input-value, r=KiChjang
Auto merge of #9514 - g-k:html-input-value, r=KiChjang
Auto merge of #9514 - g-k:html-input-value, r=KiChjang