[FIX] change block-level link to inline

Although HTML5 has added a concept of "transparent content model"[0]
where elements (such as links) can be block-level or inline depending
on their context (amongst a number of other dynamic content model
properties), most RTEs based their validation on a static DTD-type
content model and haven't been updated yet.

That's the case of CKEditor (and tinymce and aloha, it seems), and the
validator breaks block-level links. So don't use them.

[0] http://www.w3.org/TR/2011/WD-html5-20110525/content-models.html#transparent-content-models

bzr revid: xmo@openerp.com-20130917135656-g58xnx7f2avcuh9d
This commit is contained in:
Xavier Morel 2013-09-17 15:56:56 +02:00
parent d29da6144d
commit 47e3a0604c
1 changed files with 7 additions and 4 deletions

View File

@ -136,10 +136,13 @@
<div class="css_product col-md-2 mb16 thumbnail text-center" data-publish="">
<t t-call="website.publish"><t t-set="object" t-value="product"/></t>
<div class="ellipsis css_content">
<a t-attf-href="/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&amp;category_id=%s' % category_id) or ''}" style="text-decoration: none; display: block;">
<h5 t-field="product.name"/>
<img class="img-rounded" t-att-src="product.img('image_small')"/>
</a>
<h5>
<a t-attf-href="/shop/product/#{ product.id }/?#{ search and ('search=%s' % search) or ''}#{ category_id and ('&amp;category_id=%s' % category_id) or ''}"
style="text-decoration: none; display: block">
<span t-field="product.name" style="display: block;"/>
</a>
</h5>
<img class="img-rounded" t-att-src="product.img('image_small')"/>
<p t-field="product.description_sale"/>
<span class="end">&amp;#133;</span><span class="fill" contenteditable="false"></span>
</div>