Skip to content

Commit eb5e43f

Browse files
committed
[css-syntax] Allow the parser algorithms to be invoked on a string.
1 parent 23e1d53 commit eb5e43f

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

css-syntax/Overview.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2941,13 +2941,12 @@ <h3 id=definitions0><span class=secno>5.2. </span> Definitions</h3>
29412941
<h3 id=parser-entry-points><span class=secno>5.3. </span> Parser Entry
29422942
Points</h3>
29432943

2944-
<p> The algorithms defined in this specification can be invoked in
2945-
multiple ways to convert a stream of text into various CSS concepts.
2946-
2947-
<p> All of the algorithms defined in this section begin in the parser.
2948-
It is assumed that the <a href="#preprocessing-the-input-stream">input
2949-
preprocessing</a> and <a href="#tokenization">tokenization</a> steps
2950-
have already been completed, resulting in a stream of tokens.
2944+
<p> The algorithms defined in this section produce high-level CSS
2945+
objects from lower-level objects. They assume that they are invoked on
2946+
a token stream, but they may also be invoked on a string; if so, first
2947+
perform <a href="#preprocessing-the-input-stream">input
2948+
preprocessing</a> to produce a character stream, then perform <a
2949+
href="#tokenization">tokenization</a> to produce a token stream.
29512950

29522951
<p class=note> Other specs can define additional entry points for their
29532952
own purposes.

css-syntax/Overview.src.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,15 +1902,15 @@ <h3>
19021902
Parser Entry Points</h3>
19031903

19041904
<p>
1905-
The algorithms defined in this specification can be invoked in multiple ways
1906-
to convert a stream of text into various CSS concepts.
1907-
1908-
<p>
1909-
All of the algorithms defined in this section begin in the parser.
1910-
It is assumed that the <a href="#preprocessing-the-input-stream">input preprocessing</a>
1911-
and <a href="#tokenization">tokenization</a>
1912-
steps have already been completed,
1913-
resulting in a stream of tokens.
1905+
The algorithms defined in this section produce high-level CSS objects
1906+
from lower-level objects.
1907+
They assume that they are invoked on a token stream,
1908+
but they may also be invoked on a string;
1909+
if so,
1910+
first perform <a href="#preprocessing-the-input-stream">input preprocessing</a>
1911+
to produce a character stream,
1912+
then perform <a href="#tokenization">tokenization</a>
1913+
to produce a token stream.
19141914

19151915
<p class='note'>
19161916
Other specs can define additional entry points for their own purposes.

0 commit comments

Comments
 (0)