SVG cloning elements from HTML5

I just discovered
https://svgwg.org/svg2-draft/embedded.html
This looks very problematic. It ties SVG and HTML5 together in
uncomfortable ways. For example, SVGIframeElement as specced has two
"width" attributes. It's unclear how to keep this making sense as SVG and
HTML5 evolve, e.g. as new attributes get added to HTML5 elements. It will
be easy to change HTML5 in ways that break this SVG spec (and possibly vice
versa). "SVGIframeElement implements HTMLIFrameElement" creates a multiple
inheritance situation that I don't think any engine would really want to
implement, even if it made sense, which I don't think it does. I'm pretty
sure no-one who actually works on HTML5 has approved of this. Yes, it's
only in a draft, but people are already taking that as a cue to start
implementing. I think we need to take a step back from this, figure out
what the goals are and then work together on solving them the right way.

It seems to me that if we possibly can, we should solve this by reusing the
actual HTML elements so much less spec synchronization is needed. We
probably should find a way to support actual HTML elements as direct
children of SVG elements with no intervening <foreignObject>. We should
make sure the parser can handle that too, at least for a whitelisted set of
elements.

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w

Received on Wednesday, 18 June 2014 13:00:23 UTC