0 Пользователей и 1 Гость просматривают эту тему.
  • 6 Ответов
  • 4425 Просмотров
*

leo78

  • Завсегдатай
  • 1018
  • 62 / 8
  • I left from paradise!?...
Error found while checking this document as XHTML 1.0 Transitional!
Result:    1 Error

Validation Output: 1 Error

Error Line 266, Column 181: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag



Код
…hs.htmlExpand(this, phocaZoom )" ><div><ul class="star-rating-small"><li class…

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
« Последнее редактирование: 30.10.2010, 12:28:08 от leo78 »
*

leo78

  • Завсегдатай
  • 1018
  • 62 / 8
  • I left from paradise!?...
Нашёл в сети
Цитировать
Веб-Мастеру

Старшинство элементов

Пример:
Код
<p><div>...</div></p>

Примерное сообщение валидатора: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

Раздел (<div>) главнее абзаца (<p>), поэтому такая вложенность тегов не допустима

Как правильно писать:
Код
<div><p>...</p></div>

Как править и где не знаю?

Решение было описано здесь:
http://www.perkoka.ru/article/121.html
« Последнее редактирование: 30.10.2010, 14:32:18 от leo78 »
*

leo78

  • Завсегдатай
  • 1018
  • 62 / 8
  • I left from paradise!?...
*

leo78

  • Завсегдатай
  • 1018
  • 62 / 8
  • I left from paradise!?...
/components/com_phocagallery/views/category/tmpl/default.php
стр. 547

Код
			echo '<div><ul class="star-rating-small">'

.'<li class="current-rating" style="width:'.$value->voteswidthimg.'px"></li>'

.'<li><span class="star1"></span></li>';

for ($iV = 2;$iV < 6;$iV++) {

echo '<li><span class="stars'.$iV.'"></span></li>';

}

echo '</ul></div>';

echo '</a></div>';

}
*

leo78

  • Завсегдатай
  • 1018
  • 62 / 8
  • I left from paradise!?...
*

leo78

  • Завсегдатай
  • 1018
  • 62 / 8
  • I left from paradise!?...
Решил
Цитировать
Элемент <object> сообщает браузеру, как загружать и отображать объекты, которые исходно браузер не понимает. Как правило, такие объекты требуют подключения к браузеру специального модуля, который называются плагин, или запуска вспомогательной программы.

правим
/components/com_phocagallery/views/category/tmpl/default.php
стр. 547-563
Ищем:
Код
			echo '<div><ul class="star-rating-small">'

.'<li class="current-rating" style="width:'.$value->voteswidthimg.'px"></li>'

.'<li><span class="star1"></span></li>';

for ($iV = 2;$iV < 6;$iV++) {

echo '<li><span class="stars'.$iV.'"></span></li>';

}

echo '</ul></div>';

echo '</a></div>';

}

правим:
Код
			echo '<object><ul class="star-rating-small">'

.'<li class="current-rating" style="width:'.$value->voteswidthimg.'px"></li>'

.'<li><span class="star1"></span></li>';

for ($iV = 2;$iV < 6;$iV++) {

echo '<li><span class="stars'.$iV.'"></span></li>';

}

echo '</ul></object>';

echo '</a></div>';

}
*

Elimelech

  • Захожу иногда
  • 261
  • 2 / 0
А почему у меня ругается? Не подскажите!



Код
<p><span style="font-size: 9pt;"><strong>Классы</strong> в JCBB - 2915, Ocean Parkway, Brooklyn, NY, 11235:</span></p>
<p><span style="font-size: 9pt; color: #ff0000;">- суббота:</span></p>
<p><span style="font-size: 9pt;">2-4 рм - урок<br /> 4-5 рм - праздничная субботняя трапеза<br /></span></p>
<p>&nbsp;</p>




Код
 Error Line 277, Column 3: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

<p><span style="font-size: 9pt; color: #ff0000;">- суббота:</span></p>



The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Error Line 278, Column 3: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

<p><span style="font-size: 9pt;">2-4 рм - урок<br /> 4-5 рм - праздничная суббо…



The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

PhocaGallery

Автор rezchik

Ответов: 6
Просмотров: 571
Последний ответ 07.01.2024, 16:59:36
от SeBun
Русификация PhocaGallery 3 и 4 для Joomla 2.5\3.0

Автор HiopsNerevar

Ответов: 118
Просмотров: 95485
Последний ответ 11.03.2022, 16:24:13
от sergeytolkachyov
Сортировка категорий в столбцах/колонках PhocaGallery 3.2.2

Автор remix8080

Ответов: 0
Просмотров: 1512
Последний ответ 20.06.2021, 17:09:27
от remix8080
PhocaGallery 2.8.1 для Joomla 1.5

Автор iGoldSilver

Ответов: 3
Просмотров: 1697
Последний ответ 16.12.2020, 10:10:17
от iGoldSilver
PhocaGallery 4.1.2 убрать копирайт

Автор Sergey-N81

Ответов: 15
Просмотров: 13324
Последний ответ 30.11.2020, 04:07:12
от DarkDiver