<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.whatwg.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Distobj</id>
	<title>WHATWG Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.whatwg.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Distobj"/>
	<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/wiki/Special:Contributions/Distobj"/>
	<updated>2026-04-16T19:03:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=CustomData&amp;diff=3124</id>
		<title>CustomData</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=CustomData&amp;diff=3124"/>
		<updated>2008-04-09T01:08:52Z</updated>

		<summary type="html">&lt;p&gt;Distobj: /* Rejected */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are some ideas for how to include custom data in HTML documents.&lt;br /&gt;
&lt;br /&gt;
== Candidates ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span data-thing=&amp;quot;50&amp;quot; data-doohickey=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if (span.dataSet.thing &amp;gt; 10) { ... }&lt;br /&gt;
span.dataSet.doohickey = &#039;1,2,3,4&#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rejected ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span custom:my-thing=&amp;quot;50&amp;quot; custom:my-other-thing=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
(rejected because colons have special meaning in XML and so this would lead to&lt;br /&gt;
the HTML and XML DOM representations differing, which violates our intent to&lt;br /&gt;
keep the DOM accessors serialisation-agnostic.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span&amp;gt;&amp;lt;param name=my-thing value=&amp;quot;50&amp;quot;&amp;gt;&amp;lt;param name=my-other-thing value=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
(rejected because it&#039;s so verbose that people would likely just do what&lt;br /&gt;
they do now, violating the spec, instead of using it.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span custom-my-thing=&amp;quot;50&amp;quot; custom-my-other-thing=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
(rejected because &amp;quot;custom-&amp;quot; is not as good a prefix as &amp;quot;data-&amp;quot;.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;custom&amp;quot; was site-specific, then wouldn&#039;t, e.g. &amp;quot;markbaker-my-thing&amp;quot; be better than a global &amp;quot;data-my-thing&amp;quot;?  Otherwise there&#039;s a pretty good chance of collisions.  Much more author friendly than namespaces.  &amp;quot;data-&amp;quot; suggests that a central registry/wiki would be required to avoid collision.&lt;/div&gt;</summary>
		<author><name>Distobj</name></author>
	</entry>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=CustomData&amp;diff=3123</id>
		<title>CustomData</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=CustomData&amp;diff=3123"/>
		<updated>2008-04-09T01:01:39Z</updated>

		<summary type="html">&lt;p&gt;Distobj: Value of site-specific prefixes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are some ideas for how to include custom data in HTML documents.&lt;br /&gt;
&lt;br /&gt;
== Candidates ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span data-thing=&amp;quot;50&amp;quot; data-doohickey=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if (span.dataSet.thing &amp;gt; 10) { ... }&lt;br /&gt;
span.dataSet.doohickey = &#039;1,2,3,4&#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rejected ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span custom:my-thing=&amp;quot;50&amp;quot; custom:my-other-thing=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
(rejected because colons have special meaning in XML and so this would lead to&lt;br /&gt;
the HTML and XML DOM representations differing, which violates our intent to&lt;br /&gt;
keep the DOM accessors serialisation-agnostic.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span&amp;gt;&amp;lt;param name=my-thing value=&amp;quot;50&amp;quot;&amp;gt;&amp;lt;param name=my-other-thing value=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
(rejected because it&#039;s so verbose that people would likely just do what&lt;br /&gt;
they do now, violating the spec, instead of using it.)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span custom-my-thing=&amp;quot;50&amp;quot; custom-my-other-thing=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
(rejected because &amp;quot;custom-&amp;quot; is not as good a prefix as &amp;quot;data-&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
If &amp;quot;custom&amp;quot; was site-specific, then wouldn&#039;t, e.g. &amp;quot;markbaker-my-thing&amp;quot; be better than a global &amp;quot;data-my-thing&amp;quot;?  Otherwise there&#039;s a pretty good chance of collisions.  Much more author friendly than namespaces.  &amp;quot;data-&amp;quot; suggests that a central registry/wiki would be required to avoid collision.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Distobj</name></author>
	</entry>
	<entry>
		<id>https://wiki.whatwg.org/index.php?title=CustomData&amp;diff=3104</id>
		<title>CustomData</title>
		<link rel="alternate" type="text/html" href="https://wiki.whatwg.org/index.php?title=CustomData&amp;diff=3104"/>
		<updated>2008-04-04T19:43:36Z</updated>

		<summary type="html">&lt;p&gt;Distobj: Why?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are some ideas for how to include custom data in HTML documents.&lt;br /&gt;
&lt;br /&gt;
== Candidates ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span data-thing=&amp;quot;50&amp;quot; data-doohickey=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if (span.dataset.thing &amp;gt; 10) { ... }&lt;br /&gt;
span.dataset.doohickey = &#039;1,2,3,4&#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rejected ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span custom:my-thing=&amp;quot;50&amp;quot; custom:my-other-thing=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span custom-my-thing=&amp;quot;50&amp;quot; custom-my-other-thing=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;span&amp;gt;&amp;lt;param name=my-thing value=&amp;quot;50&amp;quot;&amp;gt;&amp;lt;param name=my-other-thing value=&amp;quot;4,5,1,2&amp;quot;&amp;gt;bla bla&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
What are the reasons for rejection?  The first uses namespaces which suck, and the third is super verbose, but what&#039;s wrong with the second?&lt;/div&gt;</summary>
		<author><name>Distobj</name></author>
	</entry>
</feed>