Skip to content

Commit 30ada53

Browse files
committed
Update README.md
Add note about limited multibyte support
1 parent 180786a commit 30ada53

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,16 @@ There are a few convenience methods on Document to ease finding, manipulating an
8888
* `getAllRuleSets()` – does what it says; no matter how deeply nested your rule sets are.
8989
* `getAllValues()` – finds all `Value` objects inside `Rule`s.
9090

91-
### Use cases
91+
## To-Do
9292

93-
#### Use `Parser` to prepend an id to all selectors
93+
* More convenience methods [like `selectorsWithElement($sId/Class/TagName)`, `removeSelector($oSelector)`, `attributesOfType($sType)`, `removeAttributesOfType($sType)`]
94+
* Options for output (compact, verbose, etc.)
95+
* Real multibyte support. Currently only multibyte charsets whose first 255 code points take up only one byte and are identical with ASCII are supported (yes, UTF-8 fits this description).
96+
* Named color support (using `Color` instead of an anonymous string literal)
97+
98+
## Use cases
99+
100+
### Use `Parser` to prepend an id to all selectors
94101

95102
$sMyId = "#my_id";
96103
$oParser = new Sabberworm\CSS\Parser($sText);
@@ -102,7 +109,7 @@ There are a few convenience methods on Document to ease finding, manipulating an
102109
}
103110
}
104111

105-
#### Shrink all absolute sizes to half
112+
### Shrink all absolute sizes to half
106113

107114
$oParser = new Sabberworm\CSS\Parser($sText);
108115
$oCss = $oParser->parse();
@@ -112,7 +119,7 @@ There are a few convenience methods on Document to ease finding, manipulating an
112119
}
113120
}
114121

115-
#### Remove unwanted rules
122+
### Remove unwanted rules
116123

117124
$oParser = new Sabberworm\CSS\Parser($sText);
118125
$oCss = $oParser->parse();
@@ -470,13 +477,6 @@ To output the entire CSS document into a variable, just use `->__toString()`:
470477

471478
#header {margin: 10px 2em 1cm 2%;font-family: Verdana,Helvetica,"Gill Sans",sans-serif;color: red !important;}
472479

473-
474-
## To-Do
475-
476-
* More convenience methods [like `selectorsWithElement($sId/Class/TagName)`, `removeSelector($oSelector)`, `attributesOfType($sType)`, `removeAttributesOfType($sType)`]
477-
* Options for output (compact, verbose, etc.)
478-
* Named color support (using `Color` instead of an anonymous string literal)
479-
480480
## Contributors/Thanks to
481481

482482
* [ju1ius](https://github.com/ju1ius) for the specificity parsing code and the ability to expand/compact shorthand properties.

0 commit comments

Comments
 (0)