legacy-knowledge-base
公開されました Jul. 2, 2025

ページ フラグメントの空のスタイル セレクター

written-by

Ankit Gupta

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 問題を再現する手順:
    1. 任意のテキストを含むページ フラグメントを作成して公開する
    2. コンテンツ ページにドラッグします
    3. ページを公開する
    4. 開発者ツールを開き、フラグメント ソース コードを調べると、空の css セレクターが表示されます。
    5. ソース コード全体をコピーし、 https://validator.w3.org/で検証します。 W3 バリデーターは Element style not allowed as child...のエラーをスローします

Environment

  • Liferay DXP 7.2

解決策

did-this-article-resolve-your-issue

legacy-knowledge-base