Re: Patch for "HTML5" support
Ger Hobbelt <[email protected]> Mon, 7 Nov 2011 13:52:43 +0100
| Newsgroups | gmane.comp.web.html-tidy.devel |
|---|---|
| Message-ID | <CAFP60foo9pC9SjF+LhhwtwP7bfX=ohhXuCgZUMia7dpfXOXN=g@mail.gmail.com> |
--===============7256258864183944246==
Content-Type: multipart/alternative; boundary=90e6ba6e8f0cdeaf8b04b124875a
--90e6ba6e8f0cdeaf8b04b124875a
Content-Type: text/plain; charset=ISO-8859-1
Interesting!
As you published your edits as a patch, can you tell us which version of
tidy it is done against? (An official release tarball or, say, CVS head at
SF?)
-
When time & health[*] allows I'd like to see if I can merge this with my
far-from-complete efforts re HTML5 at https://github.com/GerHobbelt/htmltidy
as there I have code which has been used in several projects to at least
process <canvas>, <svg> and <mathml>, plus some initial tidy internal
definition tables' editing for HTML5.
[*] had a sort of, er, medical 'very strong hint' a short while ago, which
requires me to rethink how much time I can/should spend behind computers &
desks on a daily basis.
FYI: in that github code I parse canvas, svg and mathml sections as
arbitrary XML trees, while their surroundings are HTML or XHTML. In other
words: when htmltidy hits one of those three tags, it switches to another
'generic XML' parser which consumes the node tree inside the tag (and
accepts anything as long as it's legal XML). Whitespace, etc. are kept
intact in those chunks, irrespective of the htmltidy whitespace/output
formatting configuration options.
The code at github also allows svg/mathml/canvas in a non-standard XHTML
and HTML4 setting, because it was done back in 2008-2009 and back then
there were JavaScript solutions to offer these abilities in otherwise
'standard' HTML4, e.g. by using excanvas.js for MSIE; I wanted a htmltidy
which could clean up production HTML (generated or hand crafted) and _not_
b0rk on those important canvas,etc. chunks in there.
--
Met vriendelijke groeten / Best regards,
Ger Hobbelt
--------------------------------------------------
web: http://www.hobbelt.com/
http://www.hebbut.net/
mail: [email protected]
mobile: +31-6-11 120 978
--------------------------------------------------
--90e6ba6e8f0cdeaf8b04b124875a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div>Interesting!<br></div><div><br></div><div>As you published your edits =
as a patch, can you tell us which version of tidy it is done against? (An o=
fficial release tarball or, say, CVS head at SF?)</div><div><br></div><div>
-<br></div><div><br></div><div>When time & health[*] allows I'd lik=
e to see if I can merge this with my far-from-complete efforts re HTML5 at =
<a href=3D"https://github.com/GerHobbelt/htmltidy">https://github.com/GerHo=
bbelt/htmltidy</a></div>
<div>as there I have code which has been used in several projects to at lea=
st process <canvas>, <svg> and <mathml>, plus some initia=
l tidy internal definition tables' editing for HTML5.</div><div><br>
</div><div>[*]=A0had a sort of, er, medical 'very strong hint' a sh=
ort while ago, which requires me to rethink how much time I can/should spen=
d behind computers & desks on a daily basis.</div><div><br></div><div>
<br></div><div>FYI: in that github code I parse canvas, svg and mathml sect=
ions as arbitrary XML trees, while their surroundings are HTML or XHTML. In=
other words: when htmltidy hits one of those three tags, it switches to an=
other 'generic XML' parser which consumes the node tree inside the =
tag (and accepts anything as long as it's legal XML). Whitespace, etc. =
are kept intact in those chunks, irrespective of the htmltidy whitespace/ou=
tput formatting configuration options.</div>
<div><br></div><div>The code at github also allows svg/mathml/canvas in a n=
on-standard XHTML and HTML4 setting, because it was done back in 2008-2009 =
and back then there were JavaScript solutions to offer these abilities in o=
therwise 'standard' HTML4, e.g. by using excanvas.js for MSIE; I wa=
nted a htmltidy which could clean up production HTML (generated or hand cra=
fted) and _not_ b0rk on those important canvas,etc. chunks in there.</div>
<div><br></div><br clear=3D"all"><br>-- <br>Met vriendelijke groeten / Best=
regards,<br><br>Ger Hobbelt<br><br>---------------------------------------=
-----------<br>web:=A0 =A0 <a href=3D"http://www.hobbelt.com/">http://www.h=
obbelt.com/</a><br>
=A0 =A0 =A0 =A0 <a href=3D"http://www.hebbut.net/">http://www.hebbut.net/</=
a><br>mail:=A0=A0 <a href=3D"mailto:[email protected]">[email protected]</a><br=
>mobile: +31-6-11 120 978<br>----------------------------------------------=
----<br><br>
--90e6ba6e8f0cdeaf8b04b124875a--
--===============7256258864183944246==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
--===============7256258864183944246==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Tidy-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tidy-develop
--===============7256258864183944246==--