HTML DOM အရည်အချင်းများ
Attr အရာဝတ္ထု
HTML DOM တွင် Attr object သည် HTML attribute ကိုကိုယ်စားပြုသည်။
HTML ရည်ညွှန်းချက်တစ်ခုသည် HTML ဒြပ်စင်တစ်ခုတွင် အမြဲတမ်းရှိသည်။
NamedNodeMap အရာဝတ္ထု
HTML DOM တွင်၊ NamedNodeMap အရာဝတ္တု သည် ဒြပ်စင် attribute nodes ၏ အစီအစဥ်မထားသော စုစည်းမှုကို ကိုယ်စားပြုသည်။
NamedNodeMap ရှိ Nodes များကို အမည်ဖြင့် သို့မဟုတ် အညွှန်း (နံပါတ်) ဖြင့် ဝင်ရောက်ကြည့်ရှုနိုင်ပါသည်။
ရည်ညွှန်းဂုဏ်သတ္တိများနှင့် နည်းလမ်းများ
Property | Description |
---|---|
isId | Deprecated |
name | Returns an attribute's name |
value | Sets or returns an attribute's value |
specified | Returns true if the attribute is specified |
NodeMap အမည်ရှိ ဂုဏ်သတ္တိများနှင့် နည်းလမ်းများ
Method | Description |
---|---|
getNamedItem() | Returns an attribute node (by name) from a NamedNodeMap |
item() | Returns an attribute node (by index) from a NamedNodeMap |
length | Returns the number of attributes in a NamedNodeMap |
removeNamedItem() | Removes an attribute (node) |
setNamedItem() | Sets an attribute (node) by name |