attributes without values

Ashish Agarwal <[email protected]> Fri, 2 May 2014 17:06:03 -0400
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <CAMu2m2+_5cUSHBKQEp2iSNM_wikN4PadFbmzW0_0tmx5bjLuFQ@mail.gmail.com>
--===============0898214093553947765==
Content-Type: multipart/alternative; boundary=047d7bdc96b06c239f04f871274f

--047d7bdc96b06c239f04f871274f
Content-Type: text/plain; charset=UTF-8

Html like "<div data-id></div>" gets parsed as:

Nethtml.Element ("div", [("data-id", "data-id")], [])

The value is set to the attribute name, which seems wrong. The correct
solution would be to change the type of an element so that values are
`string option`, but I'm guessing that's infeasible. Alternatively, the
parser should set the value to the empty string.

--047d7bdc96b06c239f04f871274f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Html like &quot;&lt;div data-id&gt;&lt;/div&gt;&quot; gets=
 parsed as:<br><br>Nethtml.Element (&quot;div&quot;, [(&quot;data-id&quot;,=
 &quot;data-id&quot;)], [])<div><br></div><div>The value is set to the attr=
ibute name, which seems wrong. The correct solution would be to change the =
type of an element so that values are `string option`, but I&#39;m guessing=
 that&#39;s infeasible. Alternatively, the parser should set the value to t=
he empty string.</div>

<div><br></div></div>

--047d7bdc96b06c239f04f871274f--


--===============0898214093553947765==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
--===============0898214093553947765==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ocamlnet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel

--===============0898214093553947765==--