Why is here no wc3 validation error?
Why is here no wc3 validation error?
am 02.06.2007 15:55:03 von Knut Krueger
Hi all,
why is the code reported as valid?
IE and Opera will display nothing without the > after the link
Regards Knut
"http://www.w3.org/TR/html4/strict.dtd">
image problem
src="http://www.w3.org/Icons/WWW/w3c_home_nb" alt="wc3"/>
Re: Why is here no wc3 validation error?
am 02.06.2007 17:37:00 von John
"Knut Krueger" wrote in message
news:f3rsrn$qu6$00$1@news.t-online.com...
> Hi all,
> why is the code reported as valid?
> IE and Opera will display nothing without the > after the link
>
> Regards Knut
>
>
> "http://www.w3.org/TR/html4/strict.dtd">
>
>
>
> >
>
> image problem
>
>
>
>
> src="http://www.w3.org/Icons/WWW/w3c_home_nb" alt="wc3"/>
>
>
>
>
Why the forward slash after ("wc3") I'm no expert but that just doesn't look
right to me. I'm only guessing here until someone comes along that may be of
more help to you.
Re: Why is here no wc3 validation error?
am 02.06.2007 17:48:54 von John Hosking
Knut Krueger wrote:
> Hi all,
> why is the code reported as valid?
> IE and Opera will display nothing without the > after the link
I don't know. Maybe Jukka or Ben or somebody experienced in reading DTDs
can explain why it's allowed.
I pasted your code into the "Validate by Direct Input" box at
http://validator.w3.org/ and found that the code is indeed deemed to be
valid. Also valid is this simpler variant:
"http://www.w3.org/TR/html4/strict.dtd">
More of a Parse Question
I can only guess that this is an instance of one of those little-known
auto-terminating tags (although it doesn't seem to be a proper "null end
tag") that seem to work because they are rooted in SGML, but which
nobody (like, say, browser developers) knows about.
Sorry I can't be of more help. I'm interested in knowing the answer, too.
--
John
Re: Why is here no wc3 validation error?
am 02.06.2007 18:33:04 von Benjamin Niemann
Hello,
Knut Krueger wrote:
> why is the code reported as valid?
> IE and Opera will display nothing without the > after the link
>
> Regards Knut
>
>
> "http://www.w3.org/TR/html4/strict.dtd">
>
>
>
> >
>
> image problem
>
>
>
>
> src="http://www.w3.org/Icons/WWW/w3c_home_nb" alt="wc3"/>
>
>
>
>
The '
[1], which is valid SGML syntax, but not supported by 'tag-soup' parsers
found in browsers.
There's also a XMLish '' tag in there, which is valid in this
context, but - when parser by the SGML rules - not what you want, though
tag-soup parsers treat it the way you want it. '' equals '
>>' where the second '>' is parsed as character data. Tag-soup parsers
probably treat the '/' as a syntax error which is silently ignored.
Reporting such things is beyond the scope of a markup validator, though it
may be of great help for web authors.
HTH
[1]: If the start-tag is immediately followed by a TAGO '<' or STAGO '',
you may omit the TAGC '>'.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/
Re: Why is here no wc3 validation error?
am 02.06.2007 18:39:16 von Harlan Messinger
Knut Krueger wrote:
> Hi all,
> why is the code reported as valid?
> IE and Opera will display nothing without the > after the link
>
> Regards Knut
>
>
> "http://www.w3.org/TR/html4/strict.dtd">
>
>
>
>
> image problem
>
>
>
>
> src="http://www.w3.org/Icons/WWW/w3c_home_nb" alt="wc3"/>
>
>
>
>
http://www.is-thought.co.uk/book/sgml-9.htm#Unclosed
Re: Why is here no wc3 validation error?
am 02.06.2007 18:51:05 von dorayme
In article ,
Benjamin Niemann wrote:
> Hello,
>
> Knut Krueger wrote:
> > why is the code reported as valid?
> > IE and Opera will display nothing without the > after the link
> >
> > Regards Knut
> >
> >
> > "http://www.w3.org/TR/html4/strict.dtd">
> >
> >
> >
> > >
> >
> > image problem
> >
> >
> >
> >
> > src="http://www.w3.org/Icons/WWW/w3c_home_nb" alt="wc3"/>
> >
> >
> >
> >
>
> The '
> [1], which is valid SGML syntax, but not supported by 'tag-soup' parsers
> found in browsers.
> There's also a XMLish '' tag in there, which is valid in this
> context, but - when parser by the SGML rules - not what you want, though
> tag-soup parsers treat it the way you want it. '' equals '
> >>' where the second '>' is parsed as character data. Tag-soup parsers
> probably treat the '/' as a syntax error which is silently ignored.
>
> Reporting such things is beyond the scope of a markup validator, though it
> may be of great help for web authors.
>
BBedit text editor reports
Unencoded entity found; "<" needs to be encoded as "<".
Document type doesn't permit empty XML element; "".
Close element "" found but element wasn't open.
The iCab browser, which refuses to show anything on the page at
all, reports:
HTML error (12/57): The attribute " is not
allowed.
HTML error (12/57): The attribute "SRC" in tag is not allowed.
HTML error (12/57): The attribute "ALT" in tag is not allowed.
HTML error (12/57): Illegal character "/" in tag.
Opera refuses too.
Safari happily displays the logo, so too does the innocent and
good old Mac IE 5
--
dorayme