Click here to get back home

were does this HTML syntax come from?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
were does this HTML syntax come from? Andy Fish 11-30-2004
Get Chitika Premium
Posted by Andy Fish on November 30, 2004, 10:19 am
Please log in for more thread options
Looking at an HTML document recently, I found this syntax which was
completely new to me

<![if !supportAnnotations]>
<style>...</style>
<![endif]>

it looks to be some kind of conditional logic but it's not in a javascript
block, just in the normal HTML markup. none of by browsers took exception to
it

there was no attempt to define or set the variable "supportAnnotations"
anywhere, so I'm not sure if it's referencing some built-in variable or
what.

Can anyone point me at anything which explains this syntax?

TIA

Andy




Posted by Leif K-Brooks on November 30, 2004, 6:16 am
Please log in for more thread options
Andy Fish wrote:
> Looking at an HTML document recently, I found this syntax which was
> completely new to me
>
> <![if !supportAnnotations]>
> <style>...</style>
> <![endif]>

It's proprietary garbage invented by Microsoft which will only work in
their so-called Web browser. You shouldn't try to use it on the public
Internet.


Posted by paul haine on December 1, 2004, 5:03 pm
Please log in for more thread options
berlin.de:

> Andy Fish wrote:
>> Looking at an HTML document recently, I found this syntax which was
>> completely new to me
>>
>> <![if !supportAnnotations]>
>> <style>...</style>
>> <![endif]>
>
> It's proprietary garbage invented by Microsoft which will only work in
> their so-called Web browser. You shouldn't try to use it on the public
> Internet.

Using a form of these conditional comments is very useful for filtering
hacks or content to specific versions of Internet Explorer, though:

http://www.quirksmode.org/css/condcom.html

Validates, and all non-IE browsers will ignore it.

--
paul haine
http://joeblade.com/
http://design.joeblade.com/


Posted by Alan J. Flavell on December 5, 2004, 11:59 pm
Please log in for more thread options
On Wed, 1 Dec 2004, paul haine wrote:

> >> <![if !supportAnnotations]>
> >> <style>...</style>
> >> <![endif]>
>
> Using a form of these conditional comments

Petitio principii. The above are not "comments", not in HTML, not in
SGML.

> is very useful for filtering
> hacks or content to specific versions of Internet Explorer, though:
>
> http://www.quirksmode.org/css/condcom.html

Fairynuff, but the cited URL refers to

|| <!--[if IE]>

> Validates,

Don't you see the difference?

> and all non-IE browsers will ignore it.

The latter form is a comment, right.

The cited form, if it happens to validate, is sheer happenstance.
Lord knows what an SGML browser would make of it.

Where's Arjun Ray when we need him? ;-)


Posted by Jan Roland Eriksson on December 6, 2004, 3:10 am
Please log in for more thread options
On Sun, 5 Dec 2004 22:59:18 +0000, "Alan J. Flavell"

[...]

>Where's Arjun Ray when we need him? ;-)

Good question, and I would be the first to really applaud his
reappearance here.

From what I know, in concentrated form...

Arjun had his company office on the south end of Manhattan.
When the twin towers fell down, his point of business became isolated
south of the street that the US authorities decided to use as a
"terrorist" border line (and that included total electronic isolation).

Suffice to say that Arjun lost all contact with his present, and future
potential, clients because of this, and he had to close down his
operation.

He managed to moved some of the more important records over to his own
apartment located straight east and over the water from his Manhattan
office, but basically; since the authorities did not even give
permission for him to visit his own office, he was stumped.

I have no accurate knowledge of his whereabouts today; last record I
could find on Usenet is in rec.pets.cats.*

(Arjun loves Cats as "mans best friend" and so do I, so we do have that
in common at least)

--
Rex




Similar ThreadsPosted
HTML syntax checking tool? December 9, 2005, 1:20 pm
Odd Syntax July 14, 2004, 8:19 pm
css syntax February 10, 2006, 4:45 pm
syntax for http 301 July 19, 2005, 1:51 pm
multiple mailto syntax November 9, 2004, 4:12 am
Syntax highlighting in TEXTAREA - possible? October 22, 2005, 4:59 pm
Netscape / IE Syntax problem or just differences? November 13, 2004, 11:55 am
Beta testers for an XHTML syntax checker sought June 23, 2005, 1:49 pm
HTML reprocessor: how do you get rid of bloated (obese) MS-Word (normal or filtered) HTML? November 5, 2006, 8:14 pm
Share common HTML code among different HTML files? May 14, 2005, 11:05 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap