Bug 81268 - Out-of-document radio buttons should be grouped when associated with a form
Summary: Out-of-document radio buttons should be grouped when associated with a form
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adam Klein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-15 14:42 PDT by Adam Klein
Modified: 2012-03-16 13:17 PDT (History)
3 users (show)

See Also:


Attachments
Patch (19.34 KB, patch)
2012-03-15 14:54 PDT, Adam Klein
no flags Details | Formatted Diff | Diff
Patch for landing (20.45 KB, patch)
2012-03-16 11:06 PDT, Adam Klein
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Klein 2012-03-15 14:42:24 PDT
Out-of-document radio buttons should be grouped when associated with a form
Comment 1 Adam Klein 2012-03-15 14:54:55 PDT
Created attachment 132125 [details]
Patch
Comment 2 Kent Tamura 2012-03-16 00:01:50 PDT
Comment on attachment 132125 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=132125&action=review

> Source/WebCore/ChangeLog:65
> +        * dom/CheckedRadioButtons.cpp:
> +        (WebCore):
> +        (WebCore::CheckedRadioButtons::addButton):
> +        (WebCore::CheckedRadioButtons::updateCheckedState):
> +        (WebCore::CheckedRadioButtons::requiredAttributeChanged):
> +        (WebCore::CheckedRadioButtons::isRequiredGroup):
> +        (WebCore::CheckedRadioButtons::removeButton):
> +        * dom/CheckedRadioButtons.h:
> +        (CheckedRadioButtons):
> +        * html/HTMLInputElement.cpp:
> +        (WebCore::HTMLInputElement::~HTMLInputElement):
> +        (WebCore::HTMLInputElement::updateType):
> +        (WebCore::HTMLInputElement::parseAttribute):
> +        (WebCore::HTMLInputElement::setChecked):
> +        (WebCore::HTMLInputElement::willChangeForm):
> +        (WebCore::HTMLInputElement::didChangeForm):
> +        (WebCore::HTMLInputElement::insertedIntoDocument):
> +        (WebCore::HTMLInputElement::removedFromDocument):
> +        (WebCore::HTMLInputElement::didMoveToNewDocument):
> +        (WebCore::HTMLInputElement::requiredAttributeChanged):
> +        (WebCore::HTMLInputElement::isInRequiredRadioButtonGroup):
> +        (WebCore):
> +        (WebCore::HTMLInputElement::checkedRadioButtonForGroup):
> +        (WebCore::HTMLInputElement::checkedRadioButtons):
> +        (WebCore::HTMLInputElement::addRadioButton):
> +        (WebCore::HTMLInputElement::removeRadioButton):
> +        * html/HTMLInputElement.h:
> +        (HTMLInputElement):
> +        * html/RadioInputType.cpp:
> +        (WebCore::RadioInputType::valueMissing):
> +        (WebCore::RadioInputType::isKeyboardFocusable):
> +        (WebCore::RadioInputType::willDispatchClick):

You had better add what is changed for each files/functions.

> Source/WebCore/html/HTMLInputElement.h:345
> +    void addRadioButton();
> +    void removeRadioButton();

I'd like to name them:
  addToRadioButtonGroup()
  removeFromRadioButtonGroup()
Comment 3 Adam Klein 2012-03-16 11:06:08 PDT
Created attachment 132321 [details]
Patch for landing
Comment 4 WebKit Review Bot 2012-03-16 13:17:04 PDT
Comment on attachment 132321 [details]
Patch for landing

Clearing flags on attachment: 132321

Committed r111051: <http://trac.webkit.org/changeset/111051>
Comment 5 WebKit Review Bot 2012-03-16 13:17:09 PDT
All reviewed patches have been landed.  Closing bug.