On 1 May 2015 at 20:05, Alex Efros <[email protected]> wrote: > Hi! > > Is there any good reason to use <div id=> for anchors instead of <a name=>?
Anchors do use <a>, the only elements that use <div id=...> are specific single elements like header, toc and footnotes. As Dan suspected, these elements are manipulated by the javascripts for generating TOC and footnotes. Note also that the name attribute is obsolete in html5, it is only usable in html4. Cheers Lex > > Using "id" attribute make it harder to embed asciidoc documents in > existing web sites. For example, check this discussion: > https://github.com/github/markup/issues/489#issuecomment-97925882 > > Is this change will break existing applications? Is there exists known > javascript applications used with asciidoc-rendered html or some other > parsers/converters which expect anchors in <div id=>? > > -- > WBR, Alex. > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/d/optout.
