WebKit fails IETC :indeterminate and input type=radio test.
As per the HTML spec http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#dom-input-indeterminate,
only checkbox input type should respect the indeterminate state.
Removed the support for indeterminate state for radio input types.
Source/WebCore:
Patch by Joe Thomas <joethomas@motorola.com> on 2012-01-26
Reviewed by Eric Seidel.
Modified the existing test cases.
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::setIndeterminate): Indeterminate state is supported only for checkbox input type.
LayoutTests:
Modified the existing test cases.
Patch by Joe Thomas <joethomas@motorola.com> on 2012-01-26
Reviewed by Eric Seidel.
* fast/forms/indeterminate-radio.html:
* fast/forms/radio-checkbox-restore-indeterminate.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105968
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-26 Joe Thomas <joethomas@motorola.com>
+
+ https://bugs.webkit.org/show_bug.cgi?id=76995.
+ WebKit fails IETC :indeterminate and input type=radio test.
+
+ As per the HTML spec http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#dom-input-indeterminate,
+ only checkbox input type should respect the indeterminate state.
+ Removed the support for indeterminate state for radio input types.
+
+ Modified the existing test cases.
+
+ Reviewed by Eric Seidel.
+
+ * fast/forms/indeterminate-radio.html:
+ * fast/forms/radio-checkbox-restore-indeterminate.html:
+
2012-01-25 Levi Weintraub <leviw@chromium.org>
Layout Test fast/js/dfg-uint32array-overflow-values.html is slow on Chromium Debug bots
<style type="text/css">
div
{
- color: red;
+ color: green;
}
input:indeterminate + #test
{
- color: green;
+ color: red;
}
</style>
</head>
log('Click unselected all radio buttons: FAIL');
log('<br>Checking whether default-prevented click clobbered indeterminate state:')
- log('On checked radio button: ' + (radio3.indeterminate ? 'PASS' : 'FAIL'));
- log('On unchecked radio button: ' + (radio4.indeterminate ? 'PASS' : 'FAIL'));
+ log('On checked radio button: ' + (!radio3.indeterminate ? 'PASS' : 'FAIL'));
+ log('On unchecked radio button: ' + (!radio4.indeterminate ? 'PASS' : 'FAIL'));
log('On checked checkbox: ' + (check1.indeterminate ? 'PASS' : 'FAIL'));
log('On unchecked checkbox: ' + (check2.indeterminate ? 'PASS' : 'FAIL'));
+2012-01-26 Joe Thomas <joethomas@motorola.com>
+
+ https://bugs.webkit.org/show_bug.cgi?id=76995.
+ WebKit fails IETC :indeterminate and input type=radio test.
+
+ As per the HTML spec http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#dom-input-indeterminate,
+ only checkbox input type should respect the indeterminate state.
+ Removed the support for indeterminate state for radio input types.
+
+ Reviewed by Eric Seidel.
+
+ Modified the existing test cases.
+
+ * html/HTMLInputElement.cpp:
+ (WebCore::HTMLInputElement::setIndeterminate): Indeterminate state is supported only for checkbox input type.
+
2012-01-25 Daniel Cheng <dcheng@chromium.org>
[chromium] Fix ClipboardChromium::validateFilename to actually operate on extensions
void HTMLInputElement::setIndeterminate(bool newValue)
{
- if (!m_inputType->isCheckable() || indeterminate() == newValue)
+ if (!isCheckbox() || indeterminate() == newValue)
return;
m_isIndeterminate = newValue;