Loading...
 
Features / Usability

Features / Usability


Bug with {maketoc}?

posts: 3665 United States

I think there's a bug with the {maketoc} module. It creates an anchor (<a name="xxxx"...>) that encapsulates the heading element. This is invalid — an inline element cannot contain a block element.

For example, look at the source of UserPagericks99. This line is invalid:

Image
Copy to clipboard
&lt;a id='id939080'>&lt;h1>Things You &lt;i>Won't&lt;/i> Find in the Tiki Docs&lt;/h1>&lt;/a>


It should be:

Image
Copy to clipboard
&lt;a id='id939080'>&lt;/a>&lt;h1>Things You &lt;i>Won't&lt;/i> Find in the Tiki Docs&lt;/h1>


posts: 3665 United States

Thanks Sylvie! Who do I need to bribe to get the fix included in 1.9x? wink

-Rick

> Fixed in 1.10. I don't know if it will be backported
> sylvie