473,472 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

<NOSCRIPT> does not pass w3c validator

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

<NOSCRIPT>

The offending URL is at: http://pmcferrin.ugate.net/barkhouse...ovalidate.html

Can someone advise me what I'm doing wrong?

-paul

Jul 20 '05 #1
13 10656
On Wed, 26 May 2004 04:07:41 GMT, Paul <""p _ e _ m c f e r r i n \"@ y a
h o o . c o m . D E L E T E> wrote:
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

<NOSCRIPT>

The offending URL is at:
http://pmcferrin.ugate.net/barkhouse...ovalidate.html

Can someone advise me what I'm doing wrong?

-paul


Stop relying on Javascript. Serve HTML.

You don't want to see what your page looks like w/o Javascript. It looks
like you're a moron, frankly.
Jul 20 '05 #2
"Paul" <""p _ e _ m c f e r r i n \"@ y a h o o . c o m . D E L E T E>
a écrit dans le message de
news:hK********************@bgtnsc05-news.ops.worldnet.att.net
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

<NOSCRIPT>

The offending URL is at:
http://pmcferrin.ugate.net/barkhouse...ovalidate.html


It seems the validator doesn't like the html in the document.write() - see
the errors below with "end tag for "A" omitted" for exemple.
It think you should rewrite that firstly (maybe the html comments aren't
with the good syntax ?).

Also I don't understand exactly why JavaScript is necessary for you
navigation menu ? Seems like you could do without JS

Jul 20 '05 #3
In message <op**************@news.individual.net>, Neal
<ne*****@yahoo.com> writes
On Wed, 26 May 2004 04:07:41 GMT, Paul <""p _ e _ m c f e r r i n \"@ y
a h o o . c o m . D E L E T E> wrote:
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

<NOSCRIPT>

The offending URL is at:
http://pmcferrin.ugate.net/barkhouse...ovalidate.html

Can someone advise me what I'm doing wrong?

-paul


Stop relying on Javascript. Serve HTML.

You don't want to see what your page looks like w/o Javascript. It
looks like you're a moron, frankly.


A little harsh, don't do think, Neal?

If it's a collection of family photos to be looked at by the family,
does it really matter that he uses JS?

Personally, I'd be more concerned about resizing the 600k+ photo images
down to less than 30k each so that dial-up users don't have to wait for
ever.

regards.
--
Jake
Jul 20 '05 #4
On Wed, 26 May 2004 11:38:21 +0100, jake <ja**@gododdin.demon.co.uk> wrote:
In message <op**************@news.individual.net>, Neal
<ne*****@yahoo.com> writes
Stop relying on Javascript. Serve HTML.

You don't want to see what your page looks like w/o Javascript. It
looks like you're a moron, frankly.
A little harsh, don't do think, Neal?


Perhaps. I was tired. But frankly, I stand by that.
If it's a collection of family photos to be looked at by the family,
does it really matter that he uses JS?
Maybe, that's for his family to decide. I don't want to make things
difficult for my family any more than I already do.
Personally, I'd be more concerned about resizing the 600k+ photo images
down to less than 30k each so that dial-up users don't have to wait for
ever.


Well, I certainly agree.
Jul 20 '05 #5
Paul <""p _ e _ m c f e r r i n \"@ y a h o o . c o m . D E L E T E> wrote in message news:<hK********************@bgtnsc05-news.ops.worldnet.att.net>...
The offending URL is at: http://pmcferrin.ugate.net/barkhouse...ovalidate.html

Can someone advise me what I'm doing wrong?

You're writing HTML when you're clearly a born Perl coder.

Try submitting it as an entry to the Obfuscated Perl contest - you've
got a winner here. This is _the_ shonkiest piece of nasty and
pointless HTML I've seen so far this year. I don't care what it's
meant to be doing, or why it isn't. After reading that source I want
to wash my hands, and probably my eyeballs too.
Jul 20 '05 #6
Paul skrev 2004-05-26 06:07:
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

<NOSCRIPT>

The offending URL is at: http://pmcferrin.ugate.net/barkhouse...ovalidate.html

Can someone advise me what I'm doing wrong?

-paul


NOSCRIPT is only allowed inside block elements, but you have put it
inside the FONT and B elements, which are inline.
--
/P.M.

Jul 20 '05 #7
joe
Some info that may help:

ABOUT <NOSCRIPT>

Contents:

Block-level elements, inline elements

Contained in:

APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM,
IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH
Jul 20 '05 #8
"joe" <jo******@verizon.net> wrote:
Some info that may help:

ABOUT <NOSCRIPT>

Contents:

Block-level elements, inline elements

Contained in:

APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM,
IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH


Odd that SCRIPT would be inline and NOSCRIPT would be block. I realize
that if NOSCRIPT were inline, then it wouldn't be able to contain
blocks, which would be a different problem. I wonder if it could have
been left bivalent as INS and DEL are.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #9


Harlan Messinger wrote:
"joe" <jo******@verizon.net> wrote:

Some info that may help:

ABOUT <NOSCRIPT>

Contents:

Block-level elements, inline elements

Contained in:

APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM,
IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH

Odd that SCRIPT would be inline and NOSCRIPT would be block. I realize
that if NOSCRIPT were inline, then it wouldn't be able to contain
blocks, which would be a different problem. I wonder if it could have
been left bivalent as INS and DEL are.


Thanks for pointing that out. I just assummed that if SCRIPT was inline, then certainly
NOSCRIPT would also be inline.

This is one of just seveal thousand HTML files using the same basic syntax. All files are
residing on a CD (in the end) so there is no option of using a web server. The CD is
basically a family CD ( http://pmcferrin.ugate.net/demo/offer.html ). I find it necessary
to use Javascript because of the need to dynamically resize images to make optimum use of
the user's screen size; regardless of the user's monitor resolution.

The HTML template that I used in writing the HTML generator was written several years ago
before the HTML validator came onto the scene. It's only recently that I wanted to make the
HTML code compliant to help ensure that browsers that come out 20 years later have a chance
to still work with antequated HTML on a CD.

In retrospec, I probably should have avoided making the HTML code function in a
non-javascript environment by making the first page checking to ensure Javascript is enabled
before continuing.

Yhanks,
-paul

PS. I know the HTML code is terrible to read! I was a first-year HTML programmer when the
template was developed. We all start out somewhere while learning.

Jul 20 '05 #10
Harlan Messinger skrev 2004-05-27 02:17:
"joe" <jo******@verizon.net> wrote:

Some info that may help:

ABOUT <NOSCRIPT>

Contents:

Block-level elements, inline elements

Contained in:

APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM,
IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH

Odd that SCRIPT would be inline and NOSCRIPT would be block. I realize
that if NOSCRIPT were inline, then it wouldn't be able to contain
blocks, which would be a different problem. I wonder if it could have
been left bivalent as INS and DEL are.


SCRIPT is defined as a *special* (inline) entity along these:

<!ENTITY % special
"A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">

(NOSCRIPT is block and INS/DEL are both as you pointed out.)

--
/P.M.

Jul 20 '05 #11
Harlan Messinger <hm*******************@comcast.net> wrote:
Odd that SCRIPT would be inline and NOSCRIPT would be block.
The SCRIPT element is for "embedding" a script into HTML, effectively
just feeding script code to a browser's script interpreter. Technically
it has "content" in HTML, but this is just because the designers of HTML
wanted to allow direct embedding of script data.

The NOSCRIPT element on the other hand encloses normal HTML content, and
it is reasonable to allow blocks there, too.

SCRIPT and NOSCRIPT may sound similar, but they really aren't comparable.
They would be comparable if SCRIPT meant that its content is to be
regarded as part of the content if and only if client-side scripting is
enabled in the browser (and different tools would be used for actual
inclusion of script code). Actually that would be nice, since it would
let us make the presence of <input type="button" ...>, for example,
depend on whether scripting is enabled; now we have to write awkward
document.write(...) stuff to generate <input type="button" ...> markup or
create the risk of displaying a button that doesn't do anything.
I realize
that if NOSCRIPT were inline, then it wouldn't be able to contain
blocks, which would be a different problem.
Indeed. Typically any useful NOSCRIPT content is a block or blocks,
though often a short one, like
<noscript>
<p><big>Sorry, this page consists of a color picker that does not work
without client-side scripting (JavaScript). Your current browser has
client-side scripting disabled, or does not support it at all.</big></p>
<p>There is <a href="table.html">table of colors</a> available for those
who cannot use client-side scripting.</p>
</noscript>
I wonder if it could have
been left bivalent as INS and DEL are.


INS and DEL are oddities and break the whole idea of inline vs block -
which, on the other hand, isn't really such a great idea (though it has
some benefits).

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #12

In article <Xn*****************************@193.229.0.31>,
jk******@cs.tut.fi says...
...


There's a little Yucca picture in the top right hand corner of Yukka's
post in my Gravity preview pane. Is this an easter egg or has Yukka
started posting binaries?
Jul 20 '05 #13
Voetleuce <le***@leu.ce> wrote in
news:MP************************@news.absamail.co.z a:

In article <Xn*****************************@193.229.0.31>,
jk******@cs.tut.fi says...
...


There's a little Yucca picture in the top right hand corner of Yukka's
post in my Gravity preview pane. Is this an easter egg or has Yukka
started posting binaries?


Neither. He's using a X-Face header:
http://www.dairiki.org/xface/

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 20 '05 #14

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

Similar topics

6
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:...
2
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...
12
by: Burton Figg | last post by:
My homepage, www.jimpix.co.uk uses transitional XHTML. The whole thing validates except one line: <noscript><img height="1" width="1" alt=""...
7
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....
1
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...
28
by: FreeCopywritingTips | last post by:
Does anyone know how to get around the </noscriptissue, were my HTML editor refuses to save this tag?
4
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"...
0
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,...
0
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.