This release contains the following breaking changes:
eachInside
iterators to walk
. For example, eachTag
is now
walkTags
, and eachInside
is now walk
.Node#removeSelf()
to Node#remove()
.Container#remove()
to Container#removeChild()
.Node#raw
to Node#raws
(thanks to @davidtheclark).&
as the nesting selector, rather than a tag selector.#{foo}
) as an
id selector (thanks to @davidtheclark).and;
[data-attr="foo=bar"]
) (thanks to @montmanu).quoted
and raw.unquoted
properties to attribute nodes
(thanks to @davidtheclark).)
and ]
tokens when they had no opening pairs.
Now postcss-selector-parser will throw when it encounters these lone tokens.str.charCodeAt(0)
for compiled builds.String
, to fix a crash on selectors such as
foo:bar("test")
.Node#sourceIndex
method (thanks to @davidtheclark).>
combinator. The module will
now no longer throw if a selector has a leading/trailing combinator node.@
tokens.replaceWith
(thanks to @jonathantneal).insertAfter
and insertBefore
during iteration.clone
and replaceWith
methods to nodes.insertBefore
and insertAfter
to containers.each
and eachInside
.length
getter and eachInside
, map
, reduce
to the container class.eachComment
).parser.id(opts)
etc.next
and prev
to the node class.first
and last
getters to the container class.every
and some
iterators to the container class.empty
alias for removeAll
.index
.nodes
exclusively, and eliminates excessive nesting..\31\ 0
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.