[Laszlo-checkins] r8923 - openlaszlo/trunk/WEB-INF/lps/lfc/services
dda@openlaszlo.org
dda at openlaszlo.org
Wed Apr 30 06:45:19 PDT 2008
Author: dda
Date: 2008-04-30 06:45:03 -0700 (Wed, 30 Apr 2008)
New Revision: 8923
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/services/LzCSSStyleSheet.lzs
Log:
Change 20080430-dda-w by dda at lester.local on 2008-04-30 09:41:40 EDT
in /Users/dda/laszlo/src/svn/openlaszlo/trunk-doc3
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: LzCSSStyleSheet doc fixups
New Features:
Bugs Fixed: LPP-5607
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: liorio (pending)
Documentation:
Release Notes:
Details:
Reviewed Phil's changes to doc, made small formatting mods.
Tests:
Built doc, reviewed this page by eye.
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/services/LzCSSStyleSheet.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/services/LzCSSStyleSheet.lzs 2008-04-30 13:44:41 UTC (rev 8922)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/services/LzCSSStyleSheet.lzs 2008-04-30 13:45:03 UTC (rev 8923)
@@ -45,30 +45,31 @@
* insertRule Used to insert a new rule into the style sheet. The new rule now
* becomes part of the cascade.
*
- * @param DOMString rule
- * The parsable text representing the rule. For rule
+ * <p>Error conditions:
+ * <ul>
+ * <li>HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the specified
+ * index e.g. if an @import rule is inserted after a standard rule set or other
+ * at-rule.</li>
+ * <li>INDEX_SIZE_ERR: Raised if the specified index is not a valid insertion point.</li>
+ * <li>NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly.</li>
+ * <li>SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable</li>
+ * </ul>
+ * </p>
+ *
+ * @access public
+ *
+ * @param String rule: The parsable text representing the rule. For rule
* sets this contains both the selector and the style declaration. For
* at-rules, this specifies both the at-identifier and the rule content.
*
- * @param int index
- * The index within the style sheet's rule list
+ * @param Number index: The index within the style sheet's rule list
* of the rule before which to insert the specified rule. If the specified
* index is equal to the length of the style sheet's rule collection, the rule
* will be added to the end of the style sheet.
*
- * @returns int
- * The index within the style sheet's rule collection of the newly inserted
- * rule.
- *
- * Error conditions:
- * DOMException
- *
- * HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the specified
- * index e.g. if an @import rule is inserted after a standard rule set or other
- * at-rule.
- * INDEX_SIZE_ERR: Raised if the specified index is not a valid insertion point.
- * NO_MODIFICATION_ALLOWED_ERR: Raised if this style sheet is readonly.
- * SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable
+ * @return Number: The index within the style sheet's rule collection of
+ * the newly inserted rule.
+ *
*/
function insertRule (rule, index) {
if (!this.cssRules) {
More information about the Laszlo-checkins
mailing list