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

I've maintained a little library for a while that does inclusion:

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."


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?


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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:48 UTC