From 2ddb32bd2f8c6fee56ff702c3230ab61c0f786b3 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 26 Jul 2014 15:55:29 +0200 Subject: Add documentation for the DOM. --- src/components/script/script.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/components/script/script.rs') 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; -- cgit v1.2.3