mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-14 12:52:08 +02:00
[ticket/15572] Fix W3C validation error for quote BBCode
PHPBB3-15572
This commit is contained in:
parent
6e89799b05
commit
cbe63da1f7
@ -13,6 +13,9 @@
|
||||
<!-- BEGIN quote_close --></div></blockquote><!-- END quote_close -->
|
||||
<!-- BEGIN quote_extended -->
|
||||
<blockquote>
|
||||
<xsl:if test="@post_url">
|
||||
<xsl:attribute name="cite"><xsl:value-of select="@post_url"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="not(@author)">
|
||||
<xsl:attribute name="class">uncited</xsl:attribute>
|
||||
</xsl:if>
|
||||
@ -42,7 +45,7 @@
|
||||
<a href="{@msg_url}" data-msg-id="{@msg_id}">↑</a>
|
||||
</xsl:if>
|
||||
<xsl:if test="@date">
|
||||
<div class="responsive-hide"><xsl:value-of select="@date"/></div>
|
||||
<span class="responsive-hide"><xsl:value-of select="@date"/></span>
|
||||
</xsl:if>
|
||||
</cite>
|
||||
</xsl:if>
|
||||
|
@ -484,7 +484,7 @@ blockquote cite:before, .uncited:before {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
blockquote cite > div {
|
||||
blockquote cite > span {
|
||||
float: right;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
@ -275,7 +275,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
||||
),
|
||||
array(
|
||||
'[quote=Username post_id=123]...[/quote]',
|
||||
'<blockquote><div><cite>Username wrote: <a href="phpBB/viewtopic.php?p=123#p123" data-post-id="123" onclick="if(document.getElementById(hash.substr(1)))href=hash">↑</a></cite>...</div></blockquote>'
|
||||
'<blockquote cite="phpBB/viewtopic.php?p=123#p123"><div><cite>Username wrote: <a href="phpBB/viewtopic.php?p=123#p123" data-post-id="123" onclick="if(document.getElementById(hash.substr(1)))href=hash">↑</a></cite>...</div></blockquote>'
|
||||
),
|
||||
array(
|
||||
// Users are not allowed to submit their own URL for the post
|
||||
@ -284,7 +284,7 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
||||
),
|
||||
array(
|
||||
'[quote=Username time=58705871]...[/quote]',
|
||||
'<blockquote><div><cite>Username wrote:<div class="responsive-hide">1971-11-11 11:11:11</div></cite>...</div></blockquote>'
|
||||
'<blockquote><div><cite>Username wrote:<span class="responsive-hide">1971-11-11 11:11:11</span></cite>...</div></blockquote>'
|
||||
),
|
||||
array(
|
||||
'[quote=Username user_id=123]...[/quote]',
|
||||
|
@ -13,6 +13,9 @@
|
||||
{% for quote_close in loops.quote_close %}</div></blockquote>{% endfor %}
|
||||
{% for quote_extended in loops.quote_extended %}
|
||||
<blockquote>
|
||||
<xsl:if test="@post_url">
|
||||
<xsl:attribute name="cite"><xsl:value-of select="@post_url"/></xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="not(@author)">
|
||||
<xsl:attribute name="class">uncited</xsl:attribute>
|
||||
</xsl:if>
|
||||
@ -38,7 +41,7 @@
|
||||
<a href="{@post_url}" data-post-id="{@post_id}" onclick="if(document.getElementById(hash.substr(1)))href=hash">↑</a>
|
||||
</xsl:if>
|
||||
<xsl:if test="@date">
|
||||
<div class="responsive-hide"><xsl:value-of select="@date"/></div>
|
||||
<span class="responsive-hide"><xsl:value-of select="@date"/></span>
|
||||
</xsl:if>
|
||||
</cite>
|
||||
</xsl:if>
|
||||
|
Loading…
x
Reference in New Issue
Block a user