Cannot put a DIV in a Link in a Token | Community
Skip to main content
Robb_Barrett
Level 10
January 27, 2016
Question

Cannot put a DIV in a Link in a Token

  • January 27, 2016
  • 3 replies
  • 2131 views

Wondering why this is happening.

I have a Rich Text token that has a table with 1 row, 3 cells. I want the cells to be clickable so I'm using the standard method I would use in HTML: <td><a href><div style="height:100%;width:100%">My text</div></a>.

When I save the token, Marketo strips the link. I'm allowed to put the link directly around the text but not around the DIV.  Wondering why this is happening and if anyone else has experienced this or has a workaround.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Justin_Cooperm2
Level 10
January 27, 2016

Can you paste the actual HTML you put in the token here?

Community Advisor
January 27, 2016

Would  <span style="display: block;"> work instead of the div?

SanfordWhiteman
Level 10
January 28, 2016

Yeah, <DIV> is not valid inside <A> until HTML5 and if this is an email you have to assume you're building for HTML4 renders (Outlook, for example, does not understand HTML5).

Robb_Barrett
Level 10
January 28, 2016

It's for an LP actually.  I posted a description of the code...I'm wrapping the A around a DIV in a token but Marketo strips it out upon save.

Robb Barrett
SanfordWhiteman
Level 10
January 28, 2016

Hmm, I assume it's still for the same legacy HTML4 reason.  I thought I recalled that Justin said the new editor was supposed to be flexible w/this so try changing the template to an HTML5 DOCTYPE.