• Resolved rreimche

    (@rreimche)


    in my footer.php I have the following code:

    <map name="bannersmap" id="bannersmap">
    			<area alt="ArtClub" href="https://artclub.me/" shape="rect" coords="0,0,144,93" />
    			<area alt="ArtOfLiving" href="https://www.art-of-living.me/ " shape="rect" coords="214,0,266,93" />
    			<area alt="Mentor&Sons" href="https://www.mentorandsons.com/mentor_and_sons/Anglijskaa_nana.html" shape="rect" coords="343,0,549,93" />
    			<area alt="Barclays" href="https://www.expopremier.ru/ " shape="rect" coords="612,0,778,93" />
    			<area alt="Cambridge Education Group" href="https://www.ceg-uk.ru/ " shape="rect" coords="819,0,915,93" />
    		</map>

    Note that every <area /> tag is closed with “/>”.

    For some reason that I have no idea of, when the page is rendered I get this code:

    <map name="bannersmap" id="bannersmap">
    			<area alt="ArtClub" href="https://artclub.me/" shape="rect" coords="0,0,144,93">
    			<area alt="ArtOfLiving" href="https://www.art-of-living.me/ " shape="rect" coords="214,0,266,93">
    			<area alt="Mentor&Sons" href="https://www.mentorandsons.com/mentor_and_sons/Anglijskaa_nana.html" shape="rect" coords="343,0,549,93">
    			<area alt="Barclays" href="https://www.expopremier.ru/ " shape="rect" coords="612,0,778,93">
    			<area alt="Cambridge Education Group" href="https://www.ceg-uk.ru/ " shape="rect" coords="819,0,915,93">
    		</map>

    Note that there is no “/” when closing the area tags. But they should be there 0_o and I don’t know why they are not…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The <area> tag does not need closing when rendering in HTML. However, it does need to be closed (like you already have) when writing in XHTML.

    My guess would be the forces at work when you save, or publish, a post. There are all kinds of little functions running “behind the scenes” when you save a post/page. (Or when you switch editor modes).

    So… is this interfering with the performance of your site? Or is it just something driving you nuts?

    Thread Starter rreimche

    (@rreimche)

    It makes problem with code validation. And that drives SEO-Guys nuts and they ask me to fix that ,)

    My page is rendered in XHTML.

    I don’t think it’s something about saving and publishing a post, because this is a front-end issue and the code is hardcoded into the footer.php.

    I have already fixed the issue by closing the tags with “</area>”. W3C validator says it’s OK.

    But thanks anyway ,)

    Awesome! Thanks for the tip!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Strange behavior — closing "/" in some tags are cut out during render.’ is closed to new replies.