< NOSCRIPT>验证XHTML问题 [英] <noscript> validation with XHTML problem

查看:58
本文介绍了< NOSCRIPT>验证XHTML问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的主页, www.jimpix.co.uk 使用过渡性XHTML。


除了一行之外,整个事情都有效:


< noscript>< img height =" 1"宽度= QUOT 1 QUOT; alt =""

src =" http://u0.extreme-dm.com/0.gif?tag = riggott& amp; j = n" />< / noscript>


我在此页面上收到此错误:

http://validator.w3.org/check?uri=ht...w.jimpix。 co.uk


第106行,第18栏:文件类型不允许元素noscript这里;

缺少对象,小程序,地图,iframe,按钮,ins,del,

start-tag


这指向< noscript>的开头标签。


我需要代码来启用我使用的网站跟踪器(XTreme Tracking)。


我看过usenet和网络,但找不到任何帮助

解决它。


谢谢


Jim

解决方案




Burton Figg写道:

我的主页, www.jimpix.co.uk 使用过渡性XHTML。

< noscript>< img height =" 1"宽度= QUOT 1 QUOT; alt =""
src =" http://u0.extreme-dm.com/0.gif?tag = riggott& amp; j = n" />< / noscript>

我在此页面上收到此错误:

http://validator.w3.org/check?uri=ht...w.jimpix.co.uk <第106行,第18列:文档类型不允许元素noscript。这里;
缺少一个对象,小程序,地图,iframe,按钮,ins,del
start-tag

这指向< noscript>的开头。标签。




据我所知,< 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
http://JavaScript.FAQTs.com/


Burton Figg写道:

我的主页, www.jimpix.co.uk 使用过渡XHTML。


出于好奇,为什么xhtml而不是html?为什么过渡和

不严格?

除了一行外,整个事情都有效:

< noscript>< img height =" 1 QUOT;宽度= 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元素的子元素必须是块级元素。 < IMG>是

内联。

我需要代码才能启用我使用的网站跟踪器(XTreme Tracking)。


这听起来很不幸。

我看过usenet和网络,但找不到任何帮助来解决它。




< 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

按照我地址中的说明给我发电子邮件





Brian写道:

Burton Figg写道:

我的主页, www.jimpix.co.uk 使用过渡性XHTML。
我在此页面上收到此错误:

第106行,第18列:文档类型不允许元素noscript
此处;
缺少一个 ; object,applet,map,iframe,按钮,ins,
del
/>
noscript元素的子元素必须是块级元素。 < IMG>是内联。




使用过渡文档类型,noscript内容是流,其中
允许内联或阻止内容。 />

-


Martin Honnen
http://JavaScript.FAQTs.com/


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&amp;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

解决方案



Burton Figg wrote:

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&amp;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.



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/


Burton Figg wrote:

My homepage, www.jimpix.co.uk uses transitional XHTML.
Out of curiousity, why xhtml and not html? and why transitional and
not strict?
The whole thing validates except one line:

<noscript><img height="1" width="1" alt=""
src="http://u0.extreme-dm.com/0.gif?tag=riggott&amp;j=n" /></noscript>

I get this error on this page:

Line 106, column 18: document type does not allow element "noscript" here;
missing one of "object", "applet", "map", "iframe", "button", "ins", "del"
start-tag
The noscript element''s child must be a block level element. <img> is
inline.
I need the code to enable a site tracker I use (XTreme Tracking).
That sounds unfortunate.
I have had a look on usenet and the web, but can''t find anything to help
solve it.



<noscript>
<div>
<img height="1" width="1" alt=""
src="http://u0.extreme-dm.com/0.gif?tag=riggott&amp;j=n" />
</div>
</noscript>

--
Brian
follow the directions in my address to email me




Brian wrote:

Burton Figg wrote:

My homepage, www.jimpix.co.uk uses transitional XHTML. I get this error on this page:

Line 106, column 18: document type does not allow element "noscript"
here;
missing one of "object", "applet", "map", "iframe", "button", "ins",
"del"
start-tag


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/


这篇关于&LT; NOSCRIPT&GT;验证XHTML问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆