Summary: | A label element not in a document should not label an element in a document | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> | ||||||
Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | cdumez, commit-queue, darin, ggaren, rniwa, sam, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
URL: | https://html.spec.whatwg.org/multipage/forms.html#attr-label-for | ||||||||
Attachments: |
|
Description
Ryosuke Niwa
2015-09-04 18:18:34 PDT
Created attachment 263860 [details]
Patch
Comment on attachment 263860 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=263860&action=review > Source/WebCore/html/HTMLLabelElement.cpp:81 > // Find the first element whose id is controlId. If it is found and it is a labelable form control, > - // return it, otherwise return 0. > + // return it, otherwise return nullptr. This is a very wordy comment. Why don't we just remove this comment and rename nodeAsSupportedLabelableElement to firstLabelableFormControl? Created attachment 263931 [details]
Patch
Comment on attachment 263931 [details] Patch Clearing flags on attachment: 263931 Committed r191497: <http://trac.webkit.org/changeset/191497> All reviewed patches have been landed. Closing bug. |