Skip to content

Commit a7d1486

Browse files
committed
[cssom] Remove CSSCharsetRule. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=27422
1 parent 399ad72 commit a7d1486

1 file changed

Lines changed: 12 additions & 34 deletions

File tree

cssom/Overview.bs

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Editor: Simon Pieters, Opera Software ASA http://www.opera.com, simonp@opera.com
1212
Editor: Glenn Adams, Cox Communications, Inc. http://www.cox.com, glenn.adams@cos.com, http://www.w3.org/wiki/User:Gadams
1313
Former Editor: Anne van Kesteren, Opera Software ASA http://www.opera.com, annevk@annevk.nl, https://annevankesteren.nl/
1414
Abstract: CSSOM defines APIs (including generic parsing and serialization rules) for Media Queries, Selectors, and of course CSS itself.
15-
Ignored Terms: EmptyString, mediaText, cssText, InvalidCharacterError, SecurityError, SyntaxError, IndexSizeError, HierarchyRequestError, InvalidStateError, InvalidModificationError, NoModificationAllowedError, CORS-same-origin, group of selectors, list of css page selectors
15+
Ignored Terms: EmptyString, mediaText, cssText, InvalidCharacterError, SecurityError, SyntaxError, IndexSizeError, HierarchyRequestError, InvalidStateError, InvalidModificationError, NoModificationAllowedError, CORS-same-origin, group of selectors, list of css page selectors, CSSCharsetRule
1616
</pre>
1717

1818
<pre class='anchors'>
@@ -1684,19 +1684,6 @@ To <dfn>serialize a CSS rule</dfn>, perform one of the following in accordance w
16841684
</ol>
16851685

16861686

1687-
<dt>{{CSSCharsetRule}}
1688-
<dd>
1689-
The result of concatenating the following:
1690-
<ol>
1691-
<li>The string "<code>@charset</code>" followed by a single SPACE (U+0020).
1692-
<li>The result of performing <a>serialize a string</a> on the rule's character encoding.
1693-
<li>The string "<code>;</code>", i.e., SEMICOLON (U+003B).
1694-
</ol>
1695-
<div class="example">
1696-
<pre>@charset "UTF-8";</pre>
1697-
</div>
1698-
1699-
17001687
<dt>{{CSSImportRule}}
17011688
<dd>
17021689
The result of concatenating the following:
@@ -1749,7 +1736,7 @@ To <dfn>insert a CSS rule</dfn> <var>rule</var> in a CSS rule list <var>list</va
17491736
a {{HierarchyRequestError}} exception. [[!CSS21]]
17501737
Note: For example, a CSS style sheet cannot contain an <code>@import</code> at-rule after a style rule.
17511738
<li>If <var>new rule</var> is an <code>@namespace</code> at-rule, and <var>list</var> contains anything other than
1752-
<code>@charset</code> at-rules, <code>@import</code> at-rules, and <code>@namespace</code> at-rules,
1739+
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
17531740
<a>throw</a> an {{InvalidStateError}} exception.
17541741
<li>Insert <var>new rule</var> into <var>list</var> at the zero-indexed position <var>index</var>.
17551742
<li>Return <var>index</var>.
@@ -1762,7 +1749,7 @@ To <dfn>remove a CSS rule</dfn> from a CSS rule list <var>list</var> at index <v
17621749
an {{IndexSizeError}} exception.
17631750
<li>Set <var>old rule</var> to the <var>index</var>th item in <var>list</var>.
17641751
<li>If <var>old rule</var> is an <code>@namespace</code> at-rule, and <var>list</var> contains anything other than
1765-
<code>@charset</code> at-rules, <code>@import</code> at-rules, and <code>@namespace</code> at-rules,
1752+
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
17661753
<a>throw</a> an {{InvalidStateError}} exception.
17671754
<li>Remove rule <var>old rule</var> from <var>list</var> at the zero-indexed position <var>index</var>.
17681755
<li>Set <var>old rule</var>'s <a lt=concept-css-rule-parent-css-rule>parent CSS rule</a> and
@@ -1808,7 +1795,7 @@ inherits from this interface.
18081795

18091796
<pre class=idl>interface CSSRule {
18101797
const unsigned short STYLE_RULE = 1;
1811-
const unsigned short CHARSET_RULE = 2;
1798+
const unsigned short CHARSET_RULE = 2; // historical
18121799
const unsigned short IMPORT_RULE = 3;
18131800
const unsigned short MEDIA_RULE = 4;
18141801
const unsigned short FONT_FACE_RULE = 5;
@@ -1826,8 +1813,6 @@ The <dfn attribute for=CSSRule>type</dfn> attribute must return the CSS rule typ
18261813
<dl class=switch>
18271814
<dt>If the object is a {{CSSStyleRule}}
18281815
<dd>Return <dfn const for=CSSRule>STYLE_RULE</dfn> (numeric value 1).
1829-
<dt>If the object is a {{CSSCharsetRule}}
1830-
<dd>Return <dfn const for=CSSRule>CHARSET_RULE</dfn> (numberic value 2).
18311816
<dt>If the object is a {{CSSImportRule}}
18321817
<dd>Return <dfn const for=CSSRule>IMPORT_RULE</dfn> (numberic value 3).
18331818
<dt>If the object is a {{CSSMediaRule}}
@@ -1918,19 +1903,6 @@ The <dfn lt=concept-declarations-specified-order>specified order</dfn> for decla
19181903
expanded into their longhand properties, in canonical order. If a property is specified more than once (after shorthand expansion), only the
19191904
one with greatest cascading order must be represented, at the same relative position as it was specified. [[!CSS3CASCADE]]
19201905

1921-
### The {{CSSCharsetRule}} Interface ### {#the-csscharsetrule-interface}
1922-
1923-
Issue: The <code>CSSCharsetRule</code> is being considered for removal. See <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27422">bug 27422</a>.
1924-
1925-
The <code>CSSCharsetRule</code> interface represents an <code>@charset</code> at-rule.
1926-
1927-
<pre class=idl>interface CSSCharsetRule : CSSRule {
1928-
attribute DOMString encoding;
1929-
};</pre>
1930-
1931-
The <dfn attribute for=CSSCharsetRule>encoding</dfn> attribute must return the encoding information specified by the
1932-
<code>@charset</code> at-rule.
1933-
19341906

19351907
### The {{CSSImportRule}} Interface ### {#the-cssimportrule-interface}
19361908

@@ -2069,7 +2041,7 @@ On setting, the {{CSSNamespaceRule/namespaceURI}} attribute must run the followi
20692041
<li>Let <var>list</var> be the <a lt=concept-css-style-sheet-css-rules>CSS rules</a> of <var>parent</var>, or
20702042
null if <var>parent</var> is null.
20712043
<li>If <var>list</var> is not null and contains anything other than
2072-
<code>@charset</code> at-rules, <code>@import</code> at-rules, and <code>@namespace</code> at-rules,
2044+
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
20732045
<a>throw</a> an {{InvalidStateError}} exception.
20742046
<li>Set the namespace of the <code>@namespace</code> at-rule to the given value.
20752047
</ol>
@@ -2084,7 +2056,7 @@ On setting, the {{CSSNamespaceRule/prefix}} attribute must run the following ste
20842056
<li>Let <var>list</var> be the <a lt=concept-css-style-sheet-css-rules>CSS rules</a> of <var>parent</var>, or
20852057
null if <var>parent</var> is null.
20862058
<li>If <var>list</var> is not null and contains anything other than
2087-
<code>@charset</code> at-rules, <code>@import</code> at-rules, and <code>@namespace</code> at-rules,
2059+
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
20882060
<a>throw</a> an {{InvalidStateError}} exception.
20892061
<li>Set the prefix of the <code>@namespace</code> at-rule to the given value.
20902062
</ol>
@@ -3188,6 +3160,12 @@ Change History {#change-history}
31883160
This section documents some of the changes between publications of this specification. This section is not exhaustive. Bug fixes and editorial changes are
31893161
generally not listed.
31903162

3163+
<!--
3164+
3165+
CSSCharsetRule is re-dropped.
3166+
3167+
-->
3168+
31913169
Changes From 12 July 2011 To 5 December 2013 {#changes-from-12-july-2011-to-5-december-2013}
31923170
--------------------------------------------------------------------------------------------
31933171

0 commit comments

Comments
 (0)