CMS Development

PatrykJ
Contributor

span blocks

I have noticed that HubSpot generates span blocks for widgets like custom html.

<span id="hs_cos_wrapper_module_5076213" class="hs_cos_wrapper hs_cos_wrapper_widget hs_cos_wrapper_type_raw_html" style="" data-hs-cos-general-type="widget" data-hs-cos-type="raw_html">

Is it possible to replace span by div?

If not, can you (HubSpot) consider to change these spans to divs in the future?

 

One of the reasons to change it (valid html):

Element div not allowed as child of element span in this context. (Suppressing further errors from this subtree.)
3 Replies 3
HaavardB
Member | Partner
Member | Partner

span blocks

This really bugs me as well (pun intended).

0 Upvotes
mIIwaukee
Contributor | Diamond Partner
Contributor | Diamond Partner

span blocks

I would also prefer that the hubl cms system write valid code.

 

Element DIV not allowed as child of element SPAN in this context. 

 

mark

0 Upvotes
edjusten
HubSpot Employee
HubSpot Employee

span blocks

Hi @PatrykJ  Welcome to the community. Perhaps @Jsum or @EricSalvi could provide further insight? 

 

Thank you, 

Ed 


Did my post help answer your query? Help the Community by marking it as a solution
0 Upvotes