<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									AMP ページでの class 属性の重複 - 不具合報告				            </title>
            <link>https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Sat, 15 Aug 2026 22:19:55 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: AMP ページでの class 属性の重複</title>
                        <link>https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25346</link>
                        <pubDate>Sun, 08 Dec 2019 10:14:26 +0000</pubDate>
                        <description><![CDATA[ご確認ありがとうございます！]]></description>
                        <content:encoded><![CDATA[<p>ご確認ありがとうございます！</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25346</guid>
                    </item>
				                    <item>
                        <title>RE: AMP ページでの class 属性の重複</title>
                        <link>https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25336</link>
                        <pubDate>Sat, 07 Dec 2019 12:40:00 +0000</pubDate>
                        <description><![CDATA[ありがとうございます。お手数をおかけしました。]]></description>
                        <content:encoded><![CDATA[<p>ありがとうございます。お手数をおかけしました。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>Akira</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25336</guid>
                    </item>
				                    <item>
                        <title>RE: AMP ページでの class 属性の重複</title>
                        <link>https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25332</link>
                        <pubDate>Sat, 07 Dec 2019 09:25:55 +0000</pubDate>
                        <description><![CDATA[その部分も確かに…。詳細は覚えていないですがおそらく僕が、何かの拍子に追加してしまったんだと思います。テンプレート部分の target=&quot;_top&quot;を削除しておきました]]></description>
                        <content:encoded><![CDATA[<p>その部分も確かに…。<br />詳細は覚えていないですがおそらく僕が、何かの拍子に追加してしまったんだと思います。<br />テンプレート部分の target="_top"を削除しておきました。<br />https://github.com/yhira/cocoon/blob/cec9274e386a0fa97804b908ea1067880c96c291/searchform.php#L13<br />更新ファイル。<br />https://github.com/yhira/cocoon/</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25332</guid>
                    </item>
				                    <item>
                        <title>RE: AMP ページでの class 属性の重複</title>
                        <link>https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25321</link>
                        <pubDate>Fri, 06 Dec 2019 15:16:25 +0000</pubDate>
                        <description><![CDATA[ありがとうございます。 class 属性の重複の解消を確認しました。ただ、申し訳ありません。私の見落としがありました。AMP ページの検索フォーム（検索ウィジェット）の form タグで target=&quot;_top&quot; も重複していました。おそらく原因は、まず searchform.php で target=&quot;_top&quot; の指定があります/ amp.php で target=&quot;_t...]]></description>
                        <content:encoded><![CDATA[<p>ありがとうございます。 class 属性の重複の解消を確認しました。</p><p>ただ、申し訳ありません。私の見落としがありました。</p><p>AMP ページの検索フォーム（検索ウィジェット）の form タグで target="_top" も重複していました。</p><p>おそらく原因は、まず searchform.php で target="_top" の指定があります。</p><p><a href="https://github.com/yhira/cocoon/blob/master/searchform.php#L13">https://github.com/yhira/cocoon/blob/master/searchform.php#L13</a></p><p>その上で、lib / amp.php で target="_top" を追加されているからかなと思います。</p><p><a href="https://github.com/yhira/cocoon/blob/4f258447acc8c25c44c077d08c44e63801ad36ab/lib/amp.php#L225">https://github.com/yhira/cocoon/blob/4f258447acc8c25c44c077d08c44e63801ad36ab/lib/amp.php#L225</a></p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>Akira</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25321</guid>
                    </item>
				                    <item>
                        <title>RE: AMP ページでの class 属性の重複</title>
                        <link>https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25299</link>
                        <pubDate>Thu, 05 Dec 2019 15:53:37 +0000</pubDate>
                        <description><![CDATA[ご連絡ありがとうございます。どうやら、前回「AMP画像にID付加の要望」があったときに、classが後ろのほうに既にあるのに気づかず「classがないじゃないか！」と思ってしまって重複追加してしまったみたいです? ? 教えていただき、助かりました。]]></description>
                        <content:encoded><![CDATA[<p>ご連絡ありがとうございます。<br />どうやら、前回「<a href="https://wp-cocoon.com/community/demands/%EF%BC%9Camp-img%EF%BC%9E%EF%BC%88%E7%94%BB%E5%83%8F%E3%81%AEamp%E8%A6%81%E7%B4%A0%EF%BC%89%E3%81%ABid%E3%82%92%E4%BB%98%E3%81%91%E3%81%A6%E3%81%84%E3%81%9F%E3%81%A0%E3%81%91%E3%81%AA%E3%81%84/">AMP画像にID付加の要望</a>」があったときに、classが後ろのほうに既にあるのに気づかず「classがないじゃないか！」と思ってしまって重複追加してしまったみたいです。<br />https://github.com/yhira/cocoon/commit/19c04cda0c5b421071e719e82272dae895de9b0f#diff-6ca2ddffd0691f770167fc4038707ae9<br />後方のclassを1つ削除しておきました。<br />------------------------------------------------<br />https://github.com/yhira/cocoon<br />最新ファイルをダウンロードする場合は、上記ページのダウンロードボタンからzipファイルをダウンロードしてください。<br />https://wp-cocoon.com/wp-content/uploads/2019/01/github-zip.png<br />FTPでのアップデート方法はこちら。<br />https://wp-cocoon.com/ftp-update/<br />------------------------------------------------<br />確かに、トピックの報告の画像にもclassが2つ表示されています。<br />https://wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1572857806-8a61fc2d5f9101522d043765c27c7a22.png<br />完全なポカです ? ? </p><p>教えていただき、助かりました。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>わいひら</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25299</guid>
                    </item>
				                    <item>
                        <title>AMP ページでの class 属性の重複</title>
                        <link>https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25298</link>
                        <pubDate>Thu, 05 Dec 2019 15:18:29 +0000</pubDate>
                        <description><![CDATA[AMP ページにて、同じタグ内で class 属性が重複しています。Cocoon 公式サイトのどのページでも、W3C の HTML 検証チェッカーで重複エラー（Duplicate attribute class）を確認できます。おそらく画像周りでしか重複エラーは出ていないと思いますので、↓ の $class_attr が 2 つあるのが原因かもしれません]]></description>
                        <content:encoded><![CDATA[<p>AMP ページにて、同じタグ内で class 属性が重複しています。</p><p>Cocoon 公式サイトのどのページでも、<a href="https://validator.w3.org/" target="true">W3C の HTML 検証チェッカー</a>で重複エラー（Duplicate attribute class）を確認できます。</p><p>おそらく画像周りでしか重複エラーは出ていないと思いますので、↓ の $class_attr が 2 つあるのが原因かもしれません。</p><p><a href="https://github.com/yhira/cocoon/blob/master/lib/amp.php#L371">https://github.com/yhira/cocoon/blob/master/lib/amp.php#L371</a></p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/bugs/">不具合報告</category>                        <dc:creator>Akira</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/bugs/amp-%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%a7%e3%81%ae-class-%e5%b1%9e%e6%80%a7%e3%81%ae%e9%87%8d%e8%a4%87/#post-25298</guid>
                    </item>
							        </channel>
        </rss>
		