RE: [WSG] Second try with [a name]

2004-02-04 Thread Taco Fleur

Taco,

Blacklisted? Now there's an idea ;-)
-

You see, I knew you guys were thinking about it ;-))

-
The simple answer to your question is:

HTML 4.01: User agents should be able to find anchors created by empty 
A elements, but some fail to do so.
citehttp://www.w3.org/TR/html4/struct/links.html#edef-A/cite

-

Some fail to do so, hhmmm, so a nbsp; would do the trick? Maybe with display: none so 
it doesn't take up any space??

-

XHTML 1.0: has deprecated the name attribute of the a, applet, form, 
frame, iframe, img, and map elements, and it will be removed from XHTML 
in subsequent versions.
citehttp://www.w3.org/TR/xhtml1/#C_8/cite

It's all in the W3C specifications.

Regards,

-- Ben
http://www.daemon.com.au/


Taco Fleur wrote:

 Not sure what the prob is, maybe I am being blacklisted? ;-))

 a name=c44/a

 Is this still correct though, having nothing in between the tags?


*
The discussion list for http://webstandardsgroup.org/
* 

*
The discussion list for http://webstandardsgroup.org/
*



Re: [WSG] Second try with [a name]

2004-02-04 Thread Ben Bishop
Taco,

Your initial post stated the issue was:

quoteto overcome the issue where I have a global style for the a 
element which is also applied to the a name element./quote

At this stage, you're trying fix your fix:

HTML 4.01: User agents should be able to find anchors created by empty 
A elements, but some fail to do so.
Some fail to do so, hhmmm, so a nbsp; would do the trick? Maybe with display: none so it doesn't take up any space??

Take a step back. Two suggestions:

 i. Can you apply your styles to a:link instead? Thus keeping a 
unstyled.
ii. Are you wrapping your named anchors around headings? You might 
style the a, and override with h2 styles.

hth,

Ben
http://www.daemon.com.au/
*
The discussion list for http://webstandardsgroup.org/
* 



RE: [WSG] Second try with [a name]

2004-02-04 Thread Taco Fleur

  i. Can you apply your styles to a:link instead? Thus keeping a 
unstyled.

I could, but I prefer not to.

 ii. Are you wrapping your named anchors around headings? You might 
style the a, and override with h2 styles.

I'm not wrapping my anchors around anything anymore (on development anyway) they are 
all empty.
But you said that some browsers might ignore empty anchors, thus my suggestion was to 
put nbsp; between the tag, and then set its style to not display so it does not take 
up any space, something like
a name=c44 class=anchor/a
*
The discussion list for http://webstandardsgroup.org/
*



RE: [WSG] Second try with [a name]

2004-02-04 Thread Peter Ottery
Title: RE: [WSG] Second try with [a name]





Taco wrote: 


 my suggestion was to put nbsp; between 
 the tag, and then set its style to not 
 display so it does not take up any space, 
 something like a name=c44 class=anchor/a


If you set display:none on the links opera and mozilla wont recognize them to be on the page and therefore the links *to* them dont work.

you might be better off making font-size: 1px with a colour to match the backgound so they are still there, just invisible.

or doing this as was suggested earlier i think can avoid all this...
a name=c44 class=anchor /


pete