I can think of two possibilities.<br><br>One would be to allow the param element as a child of any element (or any block level element?)<br><a href="http://www.whatwg.org/specs/web-apps/current-work/#param">http://www.whatwg.org/specs/web-apps/current-work/#param
</a><br><br>And then make an attribute of HTMLElement called params<br>&nbsp;readonly attribute HTMLCollection params;<br><br>Where params is a collection of HTMLParamElements that are children (not further descendants) of that element.
<br><br>That would make this:<br>&lt;div id=&quot;foo&quot;&gt;&lt;param name=&quot;answer&quot; value=&quot;42&quot;&gt;Some more content&lt;/div&gt;<br><br>easy to access via JavaScript:<br>var foo = document.getElementById
(&quot;foo&quot;);<br>if(foo.params[&#39;answer&#39;] == 42) {<br>&nbsp;// it is!!<br>}<br><br>The only other possibility I can think of would be an HTML attribute called &quot;params&quot; that would be a list of tokenized name value pairs, but that sounds even hairier to implement.
<br><br>This would have simplified something I did last week involving the Google Maps API, where I did, as mentioned, make up a fake attribute.&nbsp; There may be better ways to do this. <br><br><div><span class="gmail_quote">
On 4/9/07, <b class="gmail_sendername">ddailey</b> &lt;<a href="mailto:ddailey@zoominternet.net">ddailey@zoominternet.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Henri, thanks for the link to PPK&#39;s suggestions -- I rather like many of<br>them.<br><br>Henri Sivonen wrote:<br><br>&gt; At <a href="http://www.quirksmode.org/blog/archives/2007/04/html_5.html">http://www.quirksmode.org/blog/archives/2007/04/html_5.html
</a> PPK<br>&gt; suggests having an attribute for storing private data for scripts.<br>&gt;<br><br>I&#39;m having a hard time seeing what you&#39;re talking about here. When PPK says<br>&quot;This attribute [to store data for unobtrusive scripts] should be valid for
<br>all HTML elements. &quot; I&#39;m rather sure I&#39;ve lost you.<br><br>Sometimes, I&#39;ll stick a long string inside an invisible textarea just so as<br>to give JavaScript something to chew on -- then I can use string.split
 to<br>pull the data apart. Is that what you mean? I rather doubt it.<br><br>By &quot;private&quot; you don&#39;t really mean inaccessible to end users do you?<br><br>I think I need an example to understand.<br><br>regards,
<br>David<br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Jon Barnett