page 1 of 1
Comments: 3 | Views: 1703
RichardRudek
RichardRudek
So what do you expect for nothin'... :P
I'm trying to make a small contents table for a recent blog entry, but live.spaces keeps deleting the name attributes.

eg
<a href="#jumphere">Go There</a>
...
<a name="jumphere"></a>Whatever...

The underlined bit above gets deleted out of the html after it's published. WTF.  Is this not the way it's done anymore  ?
 
Try <a id="jumphere"></a> instead. See the HTML 4.01 specification for more details of what changed.
W3bbo
W3bbo
The Master of Baiters
RichardRudek wrote:
I'm trying to make a small contents table for a recent blog entry, but live.spaces keeps deleting the name attributes.

eg
<a href="#jumphere">Go There</a>
...
<a name="jumphere"></a>Whatever...

The underlined bit above gets deleted out of the html after it's published. WTF.  Is this not the way it's done anymore  ?
 


The WL Writer removes all non-XHTML attributes (yay!).

The way you're doing it is how it used to be done in the mid-90s, times have changed considerably Wink

"Named Anchors" are dead, consigned to the W3C's dumpster. The new hotness are Fragment Identifiers.

So whilst the means of targeting them remains the same: <a href="#fragment">, the way you define them is different. "fragment" just needs to be the ID of the element you're targeting.

Example:

<a href="#important">Jump to the important bits</a>

<p>[blah]</p>

<h3 id="important">Important Bits</h3>

<p>Important: at all times you must *****TCP CONNECTION DROPPED*****


This way, "#important" refers to the appropriately id'd header element "important".
page 1 of 1
Comments: 3 | Views: 1703
Microsoft Communities