Very Simple question for XHTML-Webspeed

gnome

Member
Hi,

I was browsing for XHTML Syntax and I found this:

source document: http://www.w3schools.com/xhtml/xhtml_syntax.asp



The id Attribute Replaces The name Attribute

HTML 4.01 defines a name attribute for the elements applet, frame, iframe, and img. In XHTML the name attribute is deprecated. Use id instead.

This is wrong:
<img src="picture.gif" name="pic1" />

This is correct:
<img src="picture.gif" id="pic1" />


Does this mean that we cannot use Webspeed and XHTML together?

Regards
gnome
 

gnome

Member
Hi,

As I understand, XHTML is recomended by the W3C. The webspeed get the value of a form element by using get-value() function. get-value() accepts a string which should specify the name of an element. But then

XHTML Standard says:
Code:
In XHTML the [B]name[/B] attribute is [B][COLOR=red]deprecated[/COLOR][/B]. Use [B]id [/B]instead.

Is there another webspeed function to retrieve value of an element through its ID (e.g. text element)?
 

Casper

ProgressTalk.com Moderator
Staff member
HTML 4.01 defines a name attribute for the elements applet, frame, iframe, and img. In XHTML the name attribute is deprecated. Use id instead.
According to above sentence, this only applies to applet, iframe, frame and img.

Casper.
 

gnome

Member
Hi Casper,

Thanks for your replies. You're right! So that's how it is interpreted. In addition, as I have read from W3C site,the rule is also applied to : form, a, and map, which is not included in what I have read earlier. I might consider that the complete thought of the W3C Recommendation has Depreciated :D in the Earlier Website. Lesson is I should have read the Original Source Document myself.

Thanks again Casper.
more power

gnome

 
Top