 |
|
 |
|
Next: Capturing list of files in a directory
|
| Author |
Message |
External

Since: Jul 27, 2006 Posts: 36
|
(Msg. 31) Posted: Thu Dec 14, 2006 8:31 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: alt>www>webmaster (more info?)
|
|
|
hug wrote:
> >> Yah, like it's not a full and accurate parser. I once had it (the w3c
> >> one) tell me there was no "id" attribute in a particular tag, and the
> >> "id" it was pointing at was part of an argument list in a url.
> >
> >It is difficult to comment without the URL of the page
> >with the validation error,
> >but if the validator found an error inside a URL string in the page,
> >could one of the other validation errors have been that
> >you did not escape ampersands in that URL?
>
> I can't say for sure Cristina, but I suppose it's possible. I'll get
> back to looking at that area again one of these days, soon I hope.
> Thanks.
What I meant is that (X)HTML mark-up errors can have a complex effect,
some validator errors could disappear if you fix other errors
higher up in the structure of the document.
If you do not escape ampersands in URL strings inside an HTML page,
those URLs might not be parsed as URLs by some bots,
and the URL string might not be recognised as a URL by the validator,
hence the error inside the URL string.
If you had non-escaped ampersands in URL string errors,
the W3C validator would have found them.
I always found the W3C validator very reliable. >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Sep 14, 2004 Posts: 2384
|
(Msg. 32) Posted: Thu Dec 14, 2006 9:59 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Sep 19, 2003 Posts: 3499
|
(Msg. 33) Posted: Thu Dec 14, 2006 12:47 pm
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Fleeing from the madness of the http://groups.google.com jungle
Andy Dingley <dingbat.TakeThisOut@codesmiths.com> stumbled into news:alt.www.webmaster
and said:
>
> William Tasso wrote:
>
>> > Legend is an inline element.
>>
>> yes, yes, I know that
>>
>> Doesn't stop it being silly.
>
> Silly? Simple, certainly.
>
> The alternative would be to push "blockness" further down into the
> children of <form> and that would complicate their layout
> substantially.
>
> Also a <h*> element isn't a caption, it's a header. "Header" iin HTML
> terms is more to do with the logical structuring of document content,
> not just captioning. In these terms then headers are inherently block
> elements rather than inline. Conversely your intended use of one here
> (inside the <form>) is implicitly wrong because it has the behaviour of
> being a caption (arguably just presentational) but not that of being a
> header (in the HTML sense).
Oh yes - I know the spec and the arguments.
This is a long and (potentially) unweildy form that is the page content.
In those terms the structure would suit each fieldet having its own
structural blocklevel heading.
Sorted now anyway.
--
William Tasso
http://williamtasso.com/words/what-is-usenet.asp >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Nov 07, 2006 Posts: 32
|
(Msg. 34) Posted: Fri Dec 15, 2006 4:11 pm
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
hug wrote:
> Yah, like it's not a full and accurate parser.
For all intents and purposes the W3C validator *is* a full and accurate
parser. There may be one or two little bugs in it, but you'd have to throw
some highly esoteric markup at it to trip one up.
> I once had it (the w3c one) tell me there was no "id" attribute in a
> particular tag, and the "id" it was pointing at was part of an argument
> list in a url.
Even without seeing the page, I can guess that the error was not saying
that there was no such *attribute* as 'id', but there was no such *entity*
as '&id;'. You almost certainly had, as part of a URL:
&id=blah
The validator was correct in pointing out this error. You must always
"escape" ampersands in URLs (indeed, anywhere in your HTML when not
already being used to indicate an entity) like so:
&id=blah
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Jul 29, 2006 Posts: 42
|
(Msg. 35) Posted: Sat Dec 16, 2006 5:13 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Toby Inkster <usenet200611 RemoveThis @tobyinkster.co.uk> wrote:
>You must always
>"escape" ampersands in URLs (indeed, anywhere in your HTML when not
>already being used to indicate an entity) like so:
>
> &id=blah
Okay Toby; I won't argue the point, but I will ask you where this is
specified. To me, anything inside a quoted string in a tag has
already been "escaped" by virtue of being inside the quoted string, so
using html entity-names for those characters inside a quoted string
seems "wrong". I'd like to find the real deal, I think fixing it
everywhere would take me about 5-10 minutes, but I'm averse to fixing
what works to do something someone says is correct without having a
full understanding for why that's so. Thanks.
--
Legacy browsers never heard of emerging standards.
(contact via http://www.ren-prod-inc.com/hug_soft) >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Jul 27, 2006 Posts: 36
|
(Msg. 36) Posted: Sat Dec 16, 2006 8:36 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
hug wrote:
> Toby Inkster <usenet200611.RemoveThis@tobyinkster.co.uk> wrote:
>
> >You must always
> >"escape" ampersands in URLs (indeed, anywhere in your HTML when not
> >already being used to indicate an entity) like so:
> >
> > &id=blah
>
> Okay Toby; I won't argue the point, but I will ask you where this is
> specified. To me, anything inside a quoted string in a tag has
> already been "escaped" by virtue of being inside the quoted string, so
> using html entity-names for those characters inside a quoted string
> seems "wrong". I'd like to find the real deal, I think fixing it
> everywhere would take me about 5-10 minutes, but I'm averse to fixing
> what works to do something someone says is correct without having a
> full understanding for why that's so. Thanks.
Probably using the expression 'escaped ampersand' I was wrong,
but it is an accepted expression for writing the
ampersand character & as &
As you know HTML uses & when representing characters,
for example the character < as part of a string (not mark-up)
is represented as <
or the copyright character as ©
so it is easy to understand why a & character within a string
should be written as &
Also, inside an XML document the character & has to be written
as & otherwise there is a serious XML syntax error,
and this applies to XHTML documents.
Usually this error is shown and well explained in the W3C validator.
The validator's FAQ points to the following URL
for explanation of the ampersand in URL strings error
http://www.htmlhelp.com/tools/validator/problems.html#amp >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Nov 07, 2006 Posts: 32
|
(Msg. 37) Posted: Sat Dec 16, 2006 10:58 pm
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Jul 29, 2006 Posts: 42
|
(Msg. 38) Posted: Sun Dec 17, 2006 2:37 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Toby Inkster <usenet200611.TakeThisOut@tobyinkster.co.uk> wrote:
>hug wrote:
>
>> Okay Toby; I won't argue the point, but I will ask you where this is
>> specified.
>
>ISO 8879 (Standard for SGML), which is normatively referred to by the HTML
>4.01 spec.
Thanks Toby.
--
Legacy browsers never heard of emerging standards.
(contact via http://www.ren-prod-inc.com/hug_soft) >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Jul 29, 2006 Posts: 42
|
(Msg. 39) Posted: Sun Dec 17, 2006 4:10 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Toby Inkster <usenet200611.RemoveThis@tobyinkster.co.uk> wrote:
>hug wrote:
>
>> Okay Toby; I won't argue the point, but I will ask you where this is
>> specified.
>
>ISO 8879 (Standard for SGML), which is normatively referred to by the HTML
>4.01 spec.
Huh. It seems everyplace where I find ISO 8879 wants you to buy a
hardcopy manual. Are you aware of a web location where its complete
text is published?
--
Legacy browsers never heard of emerging standards.
(contact via http://www.ren-prod-inc.com/hug_soft) >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Jul 29, 2006 Posts: 42
|
(Msg. 40) Posted: Sun Dec 17, 2006 4:31 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Toby Inkster <usenet200611 DeleteThis @tobyinkster.co.uk> wrote:
>hug wrote:
>
>> Okay Toby; I won't argue the point, but I will ask you where this is
>> specified.
>
>ISO 8879 (Standard for SGML), which is normatively referred to by the HTML
>4.01 spec.
Huh.
I found RFC 3986, "Uniform Resource Identifier (URI): Generic Syntax".
It says in section 2.2 that the ampersand character is a reserved
character of the subset "sub-delims", and goes on to say "characters
in the reserved set are protected from normalization and are therefore
safe to be used by scheme-specific and producer-specific algorithms
for delimiting data subcomponents within a URI."
Based on this, it remains unclear to me why a "&" character within a
double-quoted URL should be translated into an html entity.
So what am I missing here?
--
Legacy browsers never heard of emerging standards.
(contact via http://www.ren-prod-inc.com/hug_soft) >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Jul 27, 2006 Posts: 36
|
(Msg. 41) Posted: Sun Dec 17, 2006 9:10 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
hug wrote:
> Cristina, I think between you and Toby it is clear enough that you two
> think & should be used inside a quoted string. Certainly
> ampersands should be coded as & within html documents, but it's
> within quoted strings that I'm asking about.
It seems that HTML rules still apply
even inside the URL quoted string of an a tag,
you are still using HTML mark-up.
If the & character confuses the W3C validator, then
it is very possible that it will confuse other bots as well,
better write it as &
If something is flagged as an error by the W3C validator,
and you can fix it, then why not fix it.
If your web pages show validated OK by the W3C validator,
at least it shows to the visitors of your site that you
took the trouble to present to them pages that
as far as you know are correct HTML. >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Jul 29, 2006 Posts: 42
|
(Msg. 42) Posted: Sun Dec 17, 2006 10:41 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
"cristina" <cristina.DeleteThis@asymptoticdesign.com> wrote:
>hug wrote:
>
>> Cristina, I think between you and Toby it is clear enough that you two
>> think & should be used inside a quoted string. Certainly
>> ampersands should be coded as & within html documents, but it's
>> within quoted strings that I'm asking about.
>
>It seems that HTML rules still apply
>even inside the URL quoted string of an a tag,
>you are still using HTML mark-up.
Please see my post to Toby; I remain unconvinced because I have read
the URI Syntax RFC and it appears to agree with my point of view.
>If the & character confuses the W3C validator, then
>it is very possible that it will confuse other bots as well,
>better write it as &
<shrug> Bots are less important to me than customers, I have a simple
priority set, (1) make the functionality solid, (2) make it render as
intended on all current browsers including legacy browsers still
commonly in use, (3) pretty-up stuff like validation issues. Actually
it's more complex than that with continuing development coming ahead
of the pretty-up stuff, and other things too, but the basic idea is
there.
>If something is flagged as an error by the W3C validator,
>and you can fix it, then why not fix it.
I understand that point of view, but frankly I am not going to risk
incorrect rendering on some browsers because the W3C validator throws
a hissy about what I believe to be correct syntax. Sure, I'll fix
things like missing tags etc, but I'm not jumping through hoops for
validation -or- for bots unless the hoop-jumping is actually worth my
development time.
>If your web pages show validated OK by the W3C validator,
>at least it shows to the visitors of your site that you
>took the trouble to present to them pages that
>as far as you know are correct HTML.
Well, it shows a few visiting webmasters that I jumped through the W3C
validator's hoops. It's vastly more important to me that the pages
render properly on the browsers currently in use than it is to impress
a few webmasters with my conformace to the standard-de-jour.
It's not like it's a big deal for me to change it, all I have to do is
insert a single line of PHP code and it's done; but until/unless I
know that will improve things without breaking anything, the validator
can go fish. I tested it this morning, both ways work on one browser
(Opera 9.02) but restored it to its previous operation; I'm not going
through a full regression suite for something that I personally
consider to be erroneous to begin with.
--
Legacy browsers never heard of emerging standards.
(contact via http://www.ren-prod-inc.com/hug_soft) >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Jul 27, 2006 Posts: 36
|
(Msg. 43) Posted: Sun Dec 17, 2006 11:08 am
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
hug wrote:
> "cristina" <cristina.RemoveThis@asymptoticdesign.com> wrote:
> Please see my post to Toby; I remain unconvinced because I have read
> the URI Syntax RFC and it appears to agree with my point of view.
I still think that the W3C validator is correct
about writing & as & when you want to present to
the user agent (browser or bot) a text & character,
and not encode a character (like © for example).
You are still using HTML mark-up inside the a tag,
even within the URL double quotes,
and this is the case for browsers as well as bots
(not to mention if you are using XHTML, and even you agreed with
me that in XHTML documents it is an XML syntax error)
Why don't you give an URL?
It will not change the way the & character is dealt with,
but it will be easier to discuss on a specific URL.
Thank you for thanking me in a previous posting. >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Oct 21, 2005 Posts: 44
|
(Msg. 44) Posted: Sun Dec 17, 2006 3:18 pm
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
hug wrote:
> I found RFC 3986, "Uniform Resource Identifier (URI): Generic Syntax".
That's the syntax of URIs themselves, and has nothing to say about what
further transformations may be necessary in order to embed them within
the syntax of a language such as HTML, SGML, XML, or XHTML.
> It says in section 2.2 that the ampersand character is a reserved
> character of the subset "sub-delims", and goes on to say "characters
> in the reserved set are protected from normalization and are therefore
> safe to be used by scheme-specific and producer-specific algorithms
> for delimiting data subcomponents within a URI."
The character is OK for use (in the proper context) within a URI, but
the entire contents of the URI still needs to be properly encoded when
it is placed into an HTML document.
> Based on this, it remains unclear to me why a "&" character within a
> double-quoted URL should be translated into an html entity.
Because it's in an HTML document.
> So what am I missing here?
The HTML specs. The URI specs only specify what a valid URI is, not
whether it needs special encoding to be included or transmitted in some
particular context.
--
Dan >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
External

Since: Oct 21, 2005 Posts: 44
|
(Msg. 45) Posted: Sun Dec 17, 2006 9:02 pm
Post subject: Re: silly HTML [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
William Tasso wrote:
> Fleeing from the madness of the . jungle
> hug <contact_info.TakeThisOut@sig_line.clickit> stumbled into news:alt.www.webmaster
> and said:
>
> > ...
> > the validator can go fish ...
>
> Well I heard it was clever, must also have the patience of a saint.
Give a validator a fish, and it will be fishy for a day. Teach a
validator to fish, and it will be fishy for a lifetime!
--
Dan >> Stay informed about: silly HTML |
|
| Back to top |
|
 |  |
| Related Topics: | Silly price of UK hosting - I recently came across 'dedicated-servers.co.uk', and was horrified to see that the price of dedicated server hosting in the UK is still ludicrously high - compared to similar services in North America and Canada. Compare a Canadian hosted (with..
Tony Cortese made ONE silly mistake... - Tony Cortese, the latest alter-ego of an old favourite of ours here (you may be too new to remember him, Spacegirl and Els), made ONE silly mistake in trying to protect his true identity. Anyone else notice it? Hint: It's to do with changing the WRONG...
Need help with old HTML - Hiya, Without using CSS how do I: 1) Set the color of the <hr> bar? 2) Set the default font for the document in the body tag? 3) Set the default font size for the document? Hard to find anything on the net about using the depricated tags.....
I know HTML, now what? - What should I learn after HTML, for authoring webpages? I reall feel out of the loop regarding webpage authoring-- should I now learn CSS, DHTML, XHTML, XML??? I am an online college teacher and want to get up to date on the current language for webpage...
xml to html - Hi I am trying to insert an XML feed in to my website how do I get the code to convert to html instead of raw xml on the results page ??? |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|