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
Implements multi line text input for TextArea #4152
Conversation
Critic review: https://critic.hoppipolla.co.uk/r/3326 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
Squash! |
Was squashing the review commits fine, or should I squash them all? |
That's fine. |
Fixes #3918 Can be tested in `tests/html/textarea.html`. Also implemented some content reflecting IDL attributes for HTMLTextAreaElement while I was in there. There are some major problems with TextInput when Multiple is enabled that I haven't addressed here, but I'm prepared to open up a follow-up issue.
|
After modifying the panic! output a bit, I got this:
If I'm looking at this particular test correctly, the textview's cols attribute is initialized at 20 here. All I've done with cols is give it the standard make_uint_getter/setter macros. Other than that, I don't touch it at all, so I'm at a complete loss as to what's going on here (not to mention that this somehow passed on mac2). I mean, I could just get rid of the cols implementation since I'm not even using it right now, but... this is weird. |
Well, I found the spec for this. If I'm understanding it correctly, element.get_uint_attribute() should be returning either 0 or 1 (depending on whether it's restricted to values greater than 1 or 0......)
Cols falls into the latter category. Maybe getting rid of the unneeded uint attributes would be best for now? |
#4223 should fix this crash if it gets approved. |
All that, and the answer was right in front of me the the entire time: |
These changes look good to me, but they need a rebase. |
These attributes all reflect their own related content values, with the exception of defaultValue, which acts as an alias for its IDL textContent attribute. Many of these do have default values and constraints which are currently unimplemented.
Addresses reviews More review addressing
...and passing a whole bunch of new tests.
Got it! |
wait, ugh, something broke again |
Never mind, forgot to rebuild after the rebase was done. My panic was for nothing. Sorry for the fuss. |
Fixes #3918 Can be tested in `tests/html/textarea.html`. Also implemented some content reflecting IDL attributes for HTMLTextAreaElement while I was in there. There are some major problems with TextInput when Multiple is enabled that I haven't addressed here, but I'm prepared to open up a follow-up issue.
Fixes #3918
Can be tested in
tests/html/textarea.html
. Also implemented some content reflecting IDL attributes for HTMLTextAreaElement while I was in there.There are some major problems with TextInput when Multiple is enabled that I haven't addressed here, but I'm prepared to open up a follow-up issue.