EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

setAttributeNode method

Sets an attribute object node as part of the object.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4

Syntax

object.setAttributeNode(pattr, ppretAttribute)

Parameters

pattr [in]

Type: IHTMLDOMAttribute

attribute object to be assigned.

Return value

Type: IHTMLDOMAttribute

Returns a reference to the removed attribute object.

Exceptions

ExceptionCondition
WrongDocumentError
4

Raised if pattr was created from a different document than the calling element's parent document. Versions earlier than a Windows Store app using JavaScript will throw the exception as WRONG_DOCUMENT_ERR.

NoModificationAllowedError
7

Raised if a read only attribute already exists with the same name as pattr. Versions earlier than a Windows Store app using JavaScript will throw the exception as NO_MODIFICATION_ALLOWED_ERR.

InUseAttributeError
10

Raised if pattr is already assigned to an element object. Versions earlier than a Windows Store app using JavaScript will throw the exception as INUSE_ATTRIBUTE_ERR.

Standards information

See also

a
abbr
acronym
address
applet
area
b
base
baseFont
bdo
bgSound
big
blockQuote
body
br
button
caption
center
cite
code
col
colGroup
comment
custom
dd
del
dfn
dir
div
dl
dt
em
embed
fieldSet
font
form
frame
frameSet
head
hn
hr
html
i
iframe
img
input type=button
input type=checkbox
input type=email
input type=file
input type=hidden
input type=image
input type=number
input type=password
input type=radio
input type=range
input type=reset
input type=search
input type=submit
input type=tel
input type=text
input type=url
ins
isIndex
kbd
label
legend
li
link
listing
map
marquee
menu
nextID
noBR
noFrames
noScript
object
ol
option
p
plainText
pre
q
rt
ruby
s
samp
script
select
small
span
strike
strong
style
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
title
tr
tt
u
ul
var
wbr
xml
xmp

 

 

Anzeigen:
© 2014 Microsoft