Спецификация Document Object Model (DOM) Level 3 Core

W3C, “Document Object Model (DOM) Level 3 Core Specification”, public translation into Russian from English More about this translation.

Translate into another language.

Participants

RedCatX6358 points
DonkeyHot6 points
VlKhomenko3 points
Join Translated.by to translate! If you already have a Translated.by account, please sign in.
If you do not want to register an account, you can sign in with OpenID.
Pages: ← previous Ctrl next next untranslated

Document Object Model (DOM) Level 3 Core Specification

Спецификация Document Object Model (DOM) Level 3 Core

History of edits (Latest: RedCatX 1 year, 2 months ago) §

What is the Document Object Model?

Что такое Document Object Model?

History of edits (Latest: RedCatX 1 year, 2 months ago) §

/Editors/:
Philippe Le Hégaret, W3C
Lauren Wood, SoftQuad Software Inc. (for DOM Level 2)
Jonathan Robie, Texcel (for DOM Level 1)

Редакторы:
Philippe Le Hégaret, W3C
Lauren Wood, SoftQuad Software Inc. (для DOM Level 2)
Jonathan Robie, Texcel (для DOM Level 1)

History of edits (Latest: RedCatX 1 year, 2 months ago) §

Introduction

Введение

History of edits (Latest: RedCatX 1 year, 2 months ago) §

The Document Object Model (DOM) is an application programming interface
(API <#glossary-dt-API>) for valid HTML <#glossary-dt-HTML> and
well-formed XML <#glossary-dt-XML> documents. It defines the logical
structure of documents and the way a document is accessed and
manipulated. In the DOM specification, the term "document" is used in
the broad sense - increasingly, XML is being used as a way of
representing many different kinds of information that may be stored in
diverse systems, and much of this would traditionally be seen as data
rather than as documents. Nevertheless, XML presents this data as
documents, and the DOM may be used to manage this data.

Document Object Model (DOM) является интерфейсом прикладного программирования (API) для корректных HTML, и правильно построенных XML документов. DOM определяет логическую структуру документа, а также способ доступа к ней и ее изменения. В спецификации DOM термин «документ» все чаще используется в широком смысле, так как XML может представлять много различных типов информации, которая может быть сохранена в различных системах, и традиционно называется данными, а не документами. Однако XML представляет эти данные как документы, и DOM может использоваться для управления ими.

History of edits (Latest: RedCatX 1 year, 2 months ago) §

With the Document Object Model, programmers can build documents,
navigate their structure, and add, modify, or delete elements and
content. Anything found in an HTML or XML document can be accessed,
changed, deleted, or added using the Document Object Model, with a few
exceptions - in particular, the DOM interfaces <#glossary-dt-interface>
for the XML internal and external subsets have not yet been specified.

При помощи Document Object Model, программисты могут строить документы, управлять их структурой, и добавлять, изменять, или удалять элементы. К любому элементу XML или HTML документа можно получить доступ, удалить или изменить его, а также добавить новый элемент, используя Document Object Model. При этом существуют некоторые ограничения, например, еще не реализована поддержка для внутренних и внешних подмножеств XML.

History of edits (Latest: RedCatX 1 year, 2 months ago) §

As a W3C specification, one important objective for the Document Object
Model is to provide a standard programming interface that can be used in
a wide variety of environments and applications
<#glossary-dt-application>. The DOM is designed to be used with any
programming language. In order to provide a precise,
language-independent specification of the DOM interfaces, we have chosen
to define the specifications in Object Management Group (OMG) IDL [OMG
IDL <#references-OMGIDL>], as defined in the CORBA 2.3.1 specification
[CORBA <#references-CORBA>]. In addition to the OMG IDL specification,
we provide language bindings <#glossary-dt-lang-binding> for Java [Java
<#references-Java>] and ECMAScript [ECMAScript <#references-ECMAScript>]
(an industry-standard scripting language based on JavaScript [JavaScript
<#references-JavaScript>] and JScript [JScript <#references-JScript>]).
Because of language binding restrictions, a mapping has to be applied
between the OMG IDL and the programming language in used. For example,
while the DOM uses IDL attributes in the definition of interfaces, Java
does not allow interfaces to contain attributes:

Как спецификация W3C, данный документ определяет одну важную цель для Document Object Model – это обеспечить стандартный интерфейс программирования, который может использоваться в различных средах и приложениях. DOM спроектирован так, чтобы использоваться с любым языком программирования. Чтобы обеспечить точную, независимую от языка спецификацию интерфейсов DOM, мы выбрали язык описания интерфейсов Object Management Group (OMG) IDL, определенный в спецификации CORBA 2.3.1. В дополнение к описанию на языке OMG IDL мы также включили описания на языках Java и ECMAScript (язык сценариев промышленного стандарта основанный на JavaScript и JScript). Из-за некоторых ограничений привязки к языку должно быть выполнено преобразование между OMG IDL и используемым вами языком программирования. Например, в то время как DOM использует атрибуты IDL в определении интерфейсов, Java не поддерживает атрибуты в них:

History of edits (Latest: RedCatX 1 year, 2 months ago) §
Pages: ← previous Ctrl next next untranslated