內容簡介
在 WordPress 內建的所見即所得編輯器中,選擇「在新視窗中開啟連結」會在錨點標籤中添加 target=”_blank” 屬性,破壞了 XHTML 嚴謹的合規性。這個外掛能透過取代目標屬性為一般 class 屬性,再使用簡單的 jQuery 腳本在新視窗中開啟連結,以解決此問題。這個方法能夠使 XHTML 1.0 Strict 正確驗證。
授權
以 GNU General Public License 條款發布。
外掛標籤
開發者團隊
原文外掛簡介
Selecting “Open link in a new window” in the builtin WordPress WYSIWYG editor breack XHTML strict compliance by adding the attribute target=”_blank” to anchor tags. This plugin fixes the problem by replacing the target attribute with a common class attribute and then using a simple jquery script to open the link in a new window. This method allows for correct validation using XHTML 1.0 Strict.
License
Released under the terms of the GNU General Public License.
