问题描述
我的主页,使用过渡性XHTML。
除了一行之外,整个事情都有效:
< noscript>< img height =" 1"宽度= QUOT 1 QUOT; alt =""
src =" http://u0.extreme-dm.com/0.gif?tag = riggott& amp; j = n" />< / noscript>
我在此页面上收到此错误:
第106行,第18栏:文件类型不允许元素noscript这里;
缺少对象,小程序,地图,iframe,按钮,ins,del,
start-tag
这指向< noscript>的开头标签。
我需要代码来启用我使用的网站跟踪器(XTreme Tracking)。
我看过usenet和网络,但找不到任何帮助
解决它。
谢谢
Jim
据我所知,< noscript>是< p>的孩子元素,如果你
查看< p>的定义你会发现
<!ELEMENT p%Inline;>
with
<!ENTITY%Inline"(#PCDATA | %inline; |%misc.inline;)*">
和
<!ENTITY%misc.inline" ins | del |脚本">
和
<!ENTITY%inline" a | %特别; | %字体样式; | %短语; |
%inline.forms;">
且其中没有一个包含< noscript>元素仅发生在
<! - 这些只能在块级别发生 - >
<!ENTITY%misc" noscript | %misc.inline;">
所以基本上< noscript>不允许在< p>内元素。
当然你的内容是text / html和现有的浏览器
内容类型使用标签汤解析器而不关心放置
< noscript>元素。
-
Martin Honnen
< noscript>
< div>
< img height =" 1"宽度= QUOT 1 QUOT; alt =""
src =" http://u0.extreme-dm.com/0.gif?tag = riggott& amp; j = n" />
< / div>
< / noscript>
-
Brian
按照我地址中的说明给我发电子邮件
使用过渡文档类型,noscript内容是流,其中
允许内联或阻止内容。 />
-
Martin Honnen
My homepage, www.jimpix.co.uk uses transitional XHTML.
The whole thing validates except one line:
<noscript><img height="1" width="1" alt=""
src="http://u0.extreme-dm.com/0.gif?tag=riggott&j=n" /></noscript>
I get this error on this page:
http://validator.w3.org/check?uri=ht...w.jimpix.co.uk
Line 106, column 18: document type does not allow element "noscript" here;
missing one of "object", "applet", "map", "iframe", "button", "ins", "del"
start-tag
this is pointing to the start of the <noscript> tag.
I need the code to enable a site tracker I use (XTreme Tracking).
I have had a look on usenet and the web, but can''t find anything to help
solve it.
Thanks
Jim
As far as I can see the <noscript> is a child of a <p> element, if you
look at the definition for <p> you will find
<!ELEMENT p %Inline;>
with
<!ENTITY % Inline "(#PCDATA | %inline; | %misc.inline;)*">
and with
<!ENTITY % misc.inline "ins | del | script">
and with
<!ENTITY % inline "a | %special; | %fontstyle; | %phrase; |
%inline.forms;">
and none of those contain the <noscript> element which only occurs in
<!-- these can only occur at block level -->
<!ENTITY % misc "noscript | %misc.inline;">
so basically <noscript> is not allowed inside of a <p> element.
Of course your content is text/html and existing browsers for that
content type use tag soup parsers and don''t care about placement of the
<noscript> element.
--
Martin Honnen
http://JavaScript.FAQTs.com/
<noscript>
<div>
<img height="1" width="1" alt=""
src="http://u0.extreme-dm.com/0.gif?tag=riggott&j=n" />
</div>
</noscript>
--
Brian
follow the directions in my address to email me
The noscript element''s child must be a block level element. <img> is
inline.
With the transitional document type the noscript content is flow which
allows inline or block content.
--
Martin Honnen
http://JavaScript.FAQTs.com/
这篇关于< NOSCRIPT>验证XHTML问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!