aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-07-26 15:55:29 +0200
committerMs2ger <ms2ger@gmail.com>2014-07-26 17:14:34 +0200
commit2ddb32bd2f8c6fee56ff702c3230ab61c0f786b3 (patch)
treefe5586501edfb1ab46457183117681b07fbe60e1 /src/components/script/script.rs
parent5ed95e410b3f0c7ac5fb1c1e200452b27d6b5cda (diff)
downloadservo-2ddb32bd2f8c6fee56ff702c3230ab61c0f786b3.tar.gz
servo-2ddb32bd2f8c6fee56ff702c3230ab61c0f786b3.zip
Add documentation for the DOM.
Diffstat (limited to 'src/components/script/script.rs')
-rw-r--r--src/components/script/script.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/components/script/script.rs b/src/components/script/script.rs
index 9019cfeb4dc..9d04b49fc40 100644
--- a/src/components/script/script.rs
+++ b/src/components/script/script.rs
@@ -14,6 +14,8 @@
#![feature(phase)]
+#![doc="The script crate contains all matters DOM."]
+
#![allow(non_snake_case_functions)]
#[phase(plugin, link)]
@@ -43,9 +45,11 @@ extern crate sync;
extern crate servo_msg = "msg";
extern crate url = "url_";
-
pub mod cors;
+
+/// The implementation of the DOM.
pub mod dom {
+ /// The code to expose the DOM to JavaScript through IDL bindings.
pub mod bindings {
pub mod global;
pub mod js;
@@ -53,9 +57,11 @@ pub mod dom {
pub mod callback;
pub mod error;
pub mod conversions;
- pub mod proxyhandler;
+ mod proxyhandler;
pub mod str;
pub mod trace;
+
+ /// Generated JS-Rust bindings.
pub mod codegen {
pub mod Bindings;
pub mod InterfaceTypes;
@@ -190,6 +196,7 @@ pub mod dom {
pub mod testbinding;
}
+/// Parsers for HTML and CSS.
pub mod html {
pub mod cssparse;
pub mod hubbub_html_parser;