473,549 Members | 2,189 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<noscript> validation with XHTML problem

My homepage, www.jimpix.co.uk uses transitional XHTML.

The whole thing validates except one line:

<noscript><im g height="1" width="1" alt=""
src="http://u0.extreme-dm.com/0.gif?tag=riggo tt&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
Jul 20 '05 #1
12 21743


Burton Figg wrote:
My homepage, www.jimpix.co.uk uses transitional XHTML.

The whole thing validates except one line:

<noscript><im g height="1" width="1" alt=""
src="http://u0.extreme-dm.com/0.gif?tag=riggo tt&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/

Jul 20 '05 #2
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><im g height="1" width="1" alt=""
src="http://u0.extreme-dm.com/0.gif?tag=riggo tt&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=riggo tt&amp;j=n" />
</div>
</noscript>

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

Jul 20 '05 #3


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/

Jul 20 '05 #4
Martin Honnen wrote:

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.


Oops. My bad. I've never used html transitional, and am unfamiliar
with its dtd. I failed to consider that noscript might be different
in regards to allowed content. My apologies.

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

Jul 20 '05 #5
Martin Honnen wrote:

Brian wrote:
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.


I must say, upon reflection, I'm puzzled by this. Why is inline
content allowed in the transitional dtd, but not in the strict one? I
don't see this as a presentational (x)html issue.

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

Jul 20 '05 #6
Brian wrote:
With the transitional document type the noscript content is flow
which allows inline or block content.
I must say, upon reflection, I'm puzzled by this. Why is inline
content allowed in the transitional dtd, but not in the strict one? I
don't see this as a presentational (x)html issue.


Becuase the difference between Transitional and Strict is not just about the
removal of presentational markup.

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #7
In article <bs**********@t itan.btinternet .com>, one of infinite monkeys
at the keyboard of "Burton Figg" <so*****@somewh ere.com> wrote:
Line 106, column 18: document type does not allow element "noscript" here;
missing one of "object", "applet", "map", "iframe", "button", "ins", "del"
start-tag


Can't check while I'm offline, but that probably means you've put
<noscript> in an inline element. I expect you'd also get a more
helpful error message from Page Valet or the WDG Validator.

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #8
On Tue, 30 Dec 2003 13:49:28 +0000 (UTC), "Burton Figg"
<so*****@somewh ere.com> wrote:
The whole thing validates except one line: [...]this is pointing to the start of the <noscript> tag.


Martin has pointed out your specific problem - but as a general rule,
validators never point out where the error _is_, they point out the
place where the error becomes obvious. The thing causing it is almost
always earlier on in the input.

--
Klein bottle for rent. Apply within.
Jul 20 '05 #9
Nick Kew wrote:
Can't check while I'm offline, but that probably means you've put
<noscript> in an inline element. I expect you'd also get a more
helpful error message from Page Valet or the WDG Validator.


Correct. <noscript/> may not appear within <font/> or any other inline
element.

<font/> shouldn't appear at all on a page, but that is a different subject.

--
Anne van Kesteren
<http://www.annevankest eren.nl/>
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4750
by: Gustav Medler | last post by:
Hello, there is a known problem with Opera and the execution of content shown in <NOSCRIPT> tag. Everythings works fine, if there is only one simple script like: http://www.dr-wald.de/test/Opera-NOSCRIPT.html Switching off Javascript will show the alternative content. Javascript enabled will only show the JS-content, _not_ the <NOSCRIPT>...
2
2864
by: llaxman | last post by:
Hello everyone, I was wondering if anyone can help me? I am having some problems wit the <noscript> tag. I actually use it to block banner advertisements from being displaye in my website. I have used it at the <body> tag section and look something like this: <noscript>
13
10676
by: Paul | last post by:
Hello: I read the FAQ about embedding HTML code in a Javascript. I have used the "<\/tag>" format to get around validator problems. Now the <NOSCRIPT> block is failing with error #65: 1. Line 52, column 9: document type does not allow element "NOSCRIPT" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag ...
7
2337
by: Spartanicus | last post by:
Afaik the use of a <noscriptelement is frowned upon nowadays. For a JS random image changer I tried to use a replacement by having the script change the HTML src attribute value of an img element. The trouble is that in some situations like over slow connections (on initial load when the JS is in an external file), or with a slow client the...
1
2469
by: Gretsch | last post by:
I have a lot of nicely formatted HTML to be displayed for visitors WITHOUT script (/enabled), and a second set of HTML for those WITH script. The <noscript> tag allows me to separate the HTML for those without script, How can I separate the HTML for those with script? (ie not run for those without script enabled. The only way I've found...
28
2473
by: FreeCopywritingTips | last post by:
Does anyone know how to get around the </noscriptissue, were my HTML editor refuses to save this tag?
4
3960
by: phpmel | last post by:
<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script language="JavaScript" type="text/javascript"> </script> <noscript> <b>Please</b> Try this page for browsers that can not handle SCRIPTing. <a...
1
1628
by: phpmel | last post by:
hi guys, here is my problem, i have a masterpage that has a menu. on my homepage, i added the <noscript> tag to verify if the user has scripting enabled or not in the browser. When scripting is disabled and the error message is shown, the menu which is part of the masterpage,is disabled also so unless the user enables scripting,then the menu...
0
7548
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7743
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7986
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7504
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6074
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3518
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3499
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.