Closed dhvenema closed 7 years ago
Im not sure we want to do that, as we would then need to decide if the included text would come before or after the inner text. The right way to do it is to just nest the sections, which would give you the exact same result:
<section>
<section data-include=x.html>
</section>
<section>
Hi!
</section>
</section>
</section>
Remember you can also use https://github.com/w3c/respec/wiki/data-include-replace
The data-include-replace
will solve the case above too, that is.
data-include-replace=true does the job :)
As a user it would be good if it were possible to add additional HTML-code to a data-include. At the moment when a data-include is used, it is not possible to add further code. For example, this does not work:
It would be better if childelements in the
<section>
are included after the data-include content is included, thus merging in the<section>
.