-
rniwa@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=120279 Reviewed by Darin Adler. Source/WebCore: Don't add the element in the named items to the past names map when there are multiple elements. This matches IE10's behavior and the specified behavior in HTML5: http://www.w3.org/TR/2013/WD-html51-20130528/forms.html#dom-form-nameditem Test: fast/forms/past-names-map-should-not-contain-nodelist-item.html * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::getNamedElements): LayoutTests: Add a regression test. * fast/forms/past-names-map-should-not-contain-nodelist-item-expected.txt: Added. * fast/forms/past-names-map-should-not-contain-nodelist-item.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fbb44563