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

normalize method

Merges adjacent Document Object Model (DOM) objects to produce a normalized document object model.

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

Syntax

object.normalize()

Parameters

This method has no parameters.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

Remarks

By calling object.normalize before the subelements of an object are manipulated, you ensure that the document object model has a consistent structure. The normal form is useful for operations that require a consistent document tree structure, and it ensures that the document object model view is identical when it is saved and reloaded.

Note  The normalize method does not merge adjacent CDATA sections, allowing for an inconsistent object model when CDATA sections are present.

See also

a
abbr
address
area
article
aside
attribute
b
base
bdo
bgSound
blockQuote
body
br
button
caption
cite
code
col
colGroup
comment
custom
dd
del
dfn
div
dl
document
dt
em
embed
fieldSet
figcaption
figure
footer
form
frame
head
header
hgroup
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
kbd
label
legend
li
link
map
mark
menu
nav
object
ol
option
p
pre
q
rt
ruby
s
samp
script
section
select
small
span
strong
style
sub
sup
table
tBody
td
textArea
TextNode
tFoot
th
tHead
title
tr
u
ul
var

 

 

Anzeigen:
© 2014 Microsoft. Alle Rechte vorbehalten.