W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

[whatwg] Including

From: Mark Nottingham <mnot@mnot.net>
Date: Tue, 13 Nov 2012 17:41:42 +1100
Message-Id: <A958BA71-FB4D-4C81-BFDE-593D1157E0AE@mnot.net>
To: whatwg@whatwg.org
Hi WHATWG,

I've maintained a little library for a while that does inclusion:
  https://github.com/mnot/hinclude
  http://mnot.github.com/hinclude/

It's used in a few different places, and is now part of Symfony <http://symfony.com>, apparently. 

Besides the obvious issue of "should HTML5 have an inclusion tag?", something else has come up.

Right now, hinclude uses an XML namespace (hx:) to introduce a new tag. This was pretty widely tested to be interoperable way back, but AIUI that option is going away (whatever that means) in HTML5.

It's been suggested <https://github.com/mnot/hinclude/issues/13> that a data-* attribute on div could be used here, but reading the description there, I'm not so sure:

"[T]hese attributes are intended for use by the site's own scripts, and are not a generic extension mechanism for publicly-usable metadata."

<http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#embedding-custom-non-visible-data-with-the-data-*-attributes>

hinclude is intended to be visible to software beyond the site's own scripts. So, what's the appropriate thing to do here? Keep on using hx:include (after all, it works)? use data-include or similar? Or?

Thanks,



--
Mark Nottingham   http://www.mnot.net/
Received on Tuesday, 13 November 2012 06:42:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT