You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: usage.html
+17-7Lines changed: 17 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -958,10 +958,15 @@ <h2>Parsing a style sheet</h2>
958
958
</code></pre>
959
959
<p>When the second argument is <aclass="codeitem" href="api/latest/io.sf.carte.css4j/io/sf/carte/doc/style/css/CSSStyleSheet.html#COMMENTS_IGNORE">COMMENTS_IGNORE</a>, the comments in the source stream are ignored when parsing
960
960
(see <ahref="#sheetcomments"><em>Accessing Style Sheet Comments</em></a>).</p>
961
-
<p>The new CSS rules found in the source stream are added to the already present ones, <em>i.e.</em> the sheet is not reset by this method
961
+
<p>Important notes:</p>
962
+
<ul>
963
+
<li>Parsing a style sheet won't produce a <code>DOMException</code> unless the error handler (which you can
964
+
customize) does raise it.</li>
965
+
<li><p>The new CSS rules found in the source stream are added to the already present ones, <em>i.e.</em> the sheet is not reset by this method
962
966
(although the error handler is), so if you want to refill a sheet you need to clear the rules before parsing:</p>
0 commit comments