Empty anchor tags

2002-10-29 Thread Tuomo L
Hi, I'm trying to produce an empty anchor tag (HTML) with attribute name, but cocoon (XSL Tansformer + HTML Serializer) makes the closing tag in the result, which causes some browsers (IE) not to regognize the anchor. Tag: a name=foo Called with: a href=#foolink to foo/a This doesn't work

Re: Empty anchor tags

2002-10-29 Thread Kjetil Kjernsmo
On Tuesday 29 October 2002 17:26, Tuomo L wrote: a name=foo Whooa, that would be a spec violation, IIRC... :-) Called with: a href=#foolink to foo/a This doesn't work with IE: a name=foo/a Ideas anyone? Use the id-attribute. All elements have an id-attribute which is intended for

Re: Empty anchor tags

2002-10-29 Thread Tuomo L
Thanks, it works now. Should follow the specs. Wasn't a name=foo valid in HTML 4.0, though? Id is better anyway, it's more generic. -Tuomo On Tue, 29 Oct 2002, Kjetil Kjernsmo wrote: On Tuesday 29 October 2002 17:26, Tuomo L wrote: a name=foo Whooa, that would be a spec violation, IIRC...

RE: Empty anchor tags

2002-10-29 Thread Hunsberger, Peter
Thanks, it works now. Should follow the specs. Wasn't a name=foo valid in HTML 4.0, though? Id is better anyway, it's more generic. It's still valid, from the same document: http://www.w3.org/TR/html401/struct/links.html#h-12.2.1 You can use either name or id, but the name has to be unique.

Re: Empty anchor tags

2002-10-29 Thread Kjetil Kjernsmo
On Tuesday 29 October 2002 18:09, Tuomo L wrote: Thanks, it works now. Great! Should follow the specs. Yup! Wasn't a name=foo valid in HTML 4.0, though? Nope, I'm quite sure it wasn't. May have been valid in 3.2 but 3.2 was DTDed tag soup anyway :-) Id is better anyway, it's more