473,699 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DOM and fieldset

why can't a fieldset have a 'name' property as every other element can?
Aug 24 '08 #1
3 2450
On 24 Aug., 21:46, Fred <F...@notspam.n otwrote:
why can't a fieldset have a 'name' property as every other element can?
The name attribute is not an universal attribute, therefore you can't
use it for every element. It can be used for some elements (see
http://www.w3.org/TR/html4/index/attributes.html for details). I case
of using XHTML, some elements should use the id attribute instead of
name (see http://www.w3.org/TR/xhtml1/#h-4.10)

Aug 24 '08 #2
Fred a écrit :
why can't a fieldset have a 'name' property as every other element can?
And why not also 'label' or 'legend' ?

I suppose only elements needed to be sent by the form can be named
(that's to say : only inputs and textareas), this names being used as
variables on server side.
form, fieldset, legend, label are of no interest on server side.
Aug 25 '08 #3
Fred <Fr**@notspam.n otwrote in comp.lang.javas cript:
why can't a fieldset have a 'name' property as every other element can?
What purpose do you require for wanting the attribute?

If it's only to IDentify it for manipulation by DOM methods, why isn't the
unique name of the 'id' attribute adequate?

Aug 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Ian Rastall | last post by:
I'm curious as to the group's feelings about using the <fieldset> and <legend> tags around elements other than <form> elements ... I wrote a small test file: <http://www.learnsomethingnew.us/fieldset.html> to illustrate this, and it validated at both the W3C and WDG sites. (It's a <fieldset> around a <table> and <p>). I'm able to view it on Opera 7.23, Mozilla 1.6, and IE 6. (Moz 1.6 renders it in Standards Compliance Mode as well.)
by: Trent | last post by:
Hello, I have a <fieldset> in a <TD>. I want the fieldset to be as high as the TD. Setting the fieldset's height to 100% works in IE. Opera ignores it. Firefox & Netscape 7.1 give it the height of the whole page. Any suggestions? Here is my code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
by: Anne van Kesteren | last post by:
Ok, here it goes. Originally I submitted this proposal to www-style. Since I don't get feedback there, I think I missed a few (maybe a lot) of points. Proposal: <http://lists.w3.org/Archives/Public/www-style/2003Nov/0096.html> (for some strange reason I can't post to that list myself) The first point I missed was of course that CSS3UI is not planning to do anything with FIELDSET and LEGEND
by: Marek Mänd | last post by:
Can the legend element in fieldset be placed automatically by Mozilla horizontally in the middle of fieldset?
by: luke | last post by:
I'm trying to use an image as a background for a text input box. <form> <fieldset><input type="text" name ="blah" class="cheese"></fieldset> </form> I'm using this code as part of my css to overcome a background repeat bug in IE 5/6. fieldset>input.textfield {
by: Adam Smith | last post by:
Hello, Can I use <fieldset><legend><tr><tr> </tr></tr></fieldset></legend> to select multiple rows in a Table such that I can demarcate several rows containing form elements in a table? Thanks
by: kestrel | last post by:
i cant get my fieldset to work properly i have a form with two fieldsets, separating the required forms and optional but the one around the optional isnt working heres what i have: <fieldset style="border: 2px solid red;"><legend><font style="background-color: red; color: black; font-weight: bold; font-size: 13px; font-family: Lucida Console;">&nbsp;Contact Us&nbsp;</font></legend> <font class="regular"> Name:<br />
by: Nate12o6 | last post by:
Hey guys, i am having trouble with getting the heights corrected on my fieldset. Right now i have 2 table cells side by side. And inside of each there is a field set. The fieldset to the right is longer then the one to the left. So the one to the left centers itself virticaly to the cell. Is there any way i can eather raise it all the way to the top or make the height 100% of the cell? I have tried height=100% and a few other things...
by: shapper | last post by:
Hello, I am creating a form. It has a few labels, inputs and a submit button. Should I place the button inside the same fieldset as the inputs and labels? Or in a different fieldset? Or maybe I should use the following approach: 1. If the form has only one fieldset then the submit button would be inside the same fieldset has the inputs and labels.
by: BlueG | last post by:
I wrote simple code for expandable/collapsable fieldsets. You can try it yourselves: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Test</title> <style type="text/css">
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.