<span class="Apple-style-span" style="border-collapse: collapse; ">I&nbsp;currently&nbsp;see&nbsp;nameGetter,&nbsp;namedItem and&nbsp;getNamedItem&nbsp;in&nbsp;a&nbsp;number&nbsp;of&nbsp;different&nbsp;files&nbsp;that&nbsp;all&nbsp;currently&nbsp;have&nbsp;custom&nbsp;bindings&nbsp;that&nbsp;normalize&nbsp;to&nbsp;a&nbsp;nameGetter&nbsp;function.&nbsp;<div>
<br></div><div>Can&nbsp;we&nbsp;just&nbsp;have&nbsp;all&nbsp;the&nbsp;collection&nbsp;types&nbsp;normalize&nbsp;on&nbsp;a&nbsp;single&nbsp;name&nbsp;for&nbsp;this&nbsp;function?&nbsp;It&nbsp;would&nbsp;mean&nbsp;that&nbsp;much&nbsp;of&nbsp;this&nbsp;custom&nbsp;binding&nbsp;could&nbsp;be&nbsp;avoided.&nbsp;</div><div><br></div><div>I&#39;m&nbsp;running&nbsp;into&nbsp;this&nbsp;with&nbsp;Chromium&nbsp;as&nbsp;I&nbsp;am&nbsp;trying&nbsp;to&nbsp;replace&nbsp;our&nbsp;PluginArray&nbsp;and&nbsp;MimeTypeArray&nbsp;with&nbsp;WebKit&#39;s.&nbsp;This&nbsp;is&nbsp;messing&nbsp;with&nbsp;our&nbsp;templates&nbsp;that&nbsp;currently&nbsp;just&nbsp;use namedItem (although&nbsp;could&nbsp;just&nbsp;as&nbsp;easily&nbsp;use&nbsp;nameGetter&nbsp;if&nbsp;that&#39;s&nbsp;preferred).</div>
<div><br></div><div>The big differences with our&nbsp;MimeTypeArray implementation is that it kept a Vector of MimeTypes, returned raw pointers and used namedItem instead of nameGetter. It would be great if we could unify these.</div>
<div><br></div><div>Ojan</div></span>